Get Attribute "Alpha" from an iOS-Element

Mobile Testing, Android App Testing.
Patrick Hollerbach
Posts: 21
Joined: Thu Jan 02, 2014 4:00 pm

Get Attribute "Alpha" from an iOS-Element

Post by Patrick Hollerbach » Thu Jun 29, 2017 7:41 am

Hi there,

we are testing an app which uses the "Alpha"-Property to hide / show some elements.

Is it possible to get the property with ranorex? I tried the following:

Code: Select all

float alpha = itemAdapter.GetAttributeValue<float>("Alpha");
but it doesn't work.

Any idea?

Thanks,
Patrick

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Get Attribute "Alpha" from an iOS-Element

Post by Support Team » Fri Jun 30, 2017 9:37 pm

Hi Patrick,

Unfortunately I do not have an application that uses the alpha property available, but may I ask you if you tried the following method

Code: Select all

float alpha = (float) repo.App.Text.Element.InvokeAction("GetMember", "Alpha");
Regards,
Markus (S)
.
Image

Patrick Hollerbach
Posts: 21
Joined: Thu Jan 02, 2014 4:00 pm

Re: Get Attribute "Alpha" from an iOS-Element

Post by Patrick Hollerbach » Tue Jul 04, 2017 10:27 am

Hi Markus,

it's working! Thank you very much for your help.

best regards,
Patrick