Verify Andriod Element selected

Mobile Testing, Android App Testing.
Rakesh123
Posts: 63
Joined: Thu Oct 28, 2010 2:18 pm

Verify Andriod Element selected

Post by Rakesh123 » Wed Aug 13, 2014 8:24 am

Hi,

I am doing automation on Andriod Application.

I want to verify whether the particular andriod element selected or not.How to do this for android element?

Thanks,
Rakesh

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

Re: Verify Andriod Element selected

Post by Support Team » Thu Aug 14, 2014 9:10 am

Hello Rakesh,

It strongly depends on your elements and the properties they deliver. So if your element contains a “Selected”-property you could use this for validation. May I ask if you could provide a Ranorex snapshot of your application under test. This would allow us to point to a possible solution for validating your specific element.

Regards,
Robert
.
Image

Rakesh123
Posts: 63
Joined: Thu Oct 28, 2010 2:18 pm

Verify Andriod Element Selected

Post by Rakesh123 » Mon Aug 18, 2014 5:39 pm

Hi,

I am doing automation on Andriod application.

My requirement is to verify that whether the particular item in the list is selected or not.

I tried but I didn't get any way to verify this scenario as there is no property as 'Selected'

PFA the Ranorex Screenshot.

First screen shot is displaying the childrens under the list.

Second is Ranorex Snapshot file which is displaying all the attributes of List.

Third is Ranorex Snapshot file which is displaying all the attributes of Child of the List

Thanks,
Rakesh
Attachments
AndriodElement.rxsnp
Third is Ranorex Snapshot file which is displaying all the attributes of Child of the List
(31.89 KiB) Downloaded 91 times
List.rxsnp
Second is Ranorex Snapshot file which is displaying all the attributes of List.
(48.7 KiB) Downloaded 90 times
ChildElements.PNG
First screen shot is displaying the childrens under the list.
ChildElements.PNG (97.93 KiB) Viewed 723 times

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

Re: Verify Andriod Element selected

Post by Support Team » Wed Aug 20, 2014 2:21 pm

Hi Rakesh,

Thank you for providing the requested snapshot file.

First of all, I would suggest updating Ranorex to our latest version. Instrument your app once again and check if the object recognition has increased. If you are still not able to retrieve a proper attribute, you will need to define your own property which can be accessed via an invoke action.

Further information about retrieving user defined members can be found here:
http://www.ranorex.com/support/user-gui ... sting.html (Search for ‘Action # 10’).

Regards,
Robert
.
Image