Win8 Modern - inconsistently touching listview items

Mobile Testing, Android App Testing.
joel.heinke
Posts: 11
Joined: Wed Jun 05, 2013 11:16 pm

Win8 Modern - inconsistently touching listview items

Post by joel.heinke » Thu Jul 04, 2013 12:51 am

The app has a listview of items where each item has a hyperlink to the detail view. I'm trying to do data driven approach where the hyperlink text is brought in from CSV and the item is selected with a touch gesture. Within the Element Repository the xpath expression is "list/listitem/link/text[@name=$varfullname]" where varfullname is bound to the CSV column containing the text values.

At runtime, it actually completes the touch gesture about 75% of the time. Putting in different wait values seems to raise this up some but I've never got it to work 100% reliably. Even when it doesn't work, the actual list will scroll and the desired item is usually showing at the top of the visible items. So I'm guessing it's located the right list item but for some reason the touch isn't completing. Also, the desired item can be selected manually when it's obvious the automation hasn't selected it, and the automation then picks up from there.

Should this work? Is there a recommended way to achieve the same desired result but in a different way (that will work 100% of time)?

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

Re: Win8 Modern - inconsistently touching listview items

Post by Support Team » Fri Jul 05, 2013 9:47 am

Hello,

Could you please provide more information about your issue?

Which Ranorex version do you use?
Could you please post or send us ([email protected]) a report showing detailed error messages?
Have you tried to add an action 'Ensure Visible' (via 'Invoke Action > EnsureVisible) before your touch action? Could you please try to use a mouse click instead of a touch?

Thank you in advance.

Regards,
Markus (T)
.
Image

joel.heinke
Posts: 11
Joined: Wed Jun 05, 2013 11:16 pm

Re: Win8 Modern - inconsistently touching listview items

Post by joel.heinke » Mon Jul 08, 2013 9:58 pm

The Ranorex version is one I downloaded for evaluation about 30 days ago. I can't give you the exact version as the evaluation period has expired. How do I extend the eval period? I'd like to try your suggestions and want to make sure there's a workaround for this issue prior to buying license.

There are no error messages displayed when the touch action fails. The symptoms for the failure is that the next operation fails because the UI element it's looking for is not displayed. The touch action when successful navigates to another window/page. Yes, I already tried using Ensure Visible before the touch action. It scrolls the listview so the desired item is visible but the touch action still only works part of the time.

I was going to try mouse click but see me eval license is now expired. I'll try it once eval license is working again.

Thanks,
Joel

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

Re: Win8 Modern - inconsistently touching listview items

Post by Support Team » Tue Jul 09, 2013 10:52 am

Hello,

Could you please contact our sales team ([email protected]) in order to extend your license?

It would help us to analyze your issue if you could send us a Ranorex Snapshot of your application.
Please take a look at Creating Ranorex Snapshot Files in our User Guide.

Thank you.

Regards,
Markus (T)
.
Image

joel.heinke
Posts: 11
Joined: Wed Jun 05, 2013 11:16 pm

Re: Win8 Modern - inconsistently touching listview items

Post by joel.heinke » Wed Jul 10, 2013 1:39 am

Ok, got license extended. I'm using Ranorex Studio 4.0.4.23593.

The app implementation changed since I first reported this issue. The listview was put within a semantic zoom control. I had to change the repository expression some ( element/container/list[@automationid='ItemListView']/*/link/text[@name=$varfullname] ) but it's still basically the same. It appears to work even less reliably now though.

I tried changing the operation from touch to mouse click. The mouse click appears to work more reliably but it has side effect of causing the app to minimize (drop off display) randomly.

I captured a snapshot file when the listview is displayed. I'll send it separately to the support email acct.

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

Re: Win8 Modern - inconsistently touching listview items

Post by Support Team » Thu Jul 11, 2013 2:15 pm

Hello Joel,

Thank you for your snapshot.
We will reply to you via email.

Regards,
Markus (T)
.
Image