Page 1 of 1

Get Attribute "Alpha" from an iOS-Element

Posted: Thu Jun 29, 2017 7:41 am
by Patrick Hollerbach
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

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

Posted: Fri Jun 30, 2017 9:37 pm
by Support Team
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)

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

Posted: Tue Jul 04, 2017 10:27 am
by Patrick Hollerbach
Hi Markus,

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

best regards,
Patrick