Difficulties with finding xpath elements on Windows 10

Ranorex Spy, Recorder, and Studio.
Dennis
Posts: 4
Joined: Mon May 26, 2014 4:29 pm

Difficulties with finding xpath elements on Windows 10

Post by Dennis » Mon Jan 04, 2016 6:04 pm

Hi,

There seems to be a problem running cross platform (recorded) test scripts.
Overhere we test is a hybrid app for Windows 8.1, 10, Windows Phone 8.1, iOS and Android with use of Cordova.

In our app we have for example a menu button. The xpath for the element is on a Windows 8.1 machine:
/dom[@domain='tensingmobility.tensingfmp360']//a[#'menuButton']
For Android I replace the root /dom[...] for something applicable like /mobileapp[...] and it is able to find the menu button. This way I only have one repository for all platforms.

However, this does not work for Windows 10. Running the scripts will fail and it seems that the Runner cannot find the element. With the Spy I can find the element /dom[@domain='tensingmobility.tensingfmp360']//a[#'menuButton'] and it is not greyed out so the spy also sees that the element is visible. What the spy is not able to do, is highlighting the element (works fine on Windows 8.1)

What does work on Windows 10 is using the path for Windows UI automation. For the menu button I want to validate it is /winapp[@packagename='TensingMobility.TensingFMP360']/?/?/container[@classname='Internet Explorer_Server']/?/?/link[@automationid='menuButton'] but these path are not usable on other platforms.

So my question is: are there special settings for Windows 10? Or do we have a bug overhere?

Thanks for your help.

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

Re: Difficulties with finding xpath elements on Windows 10

Post by Support Team » Tue Jan 05, 2016 10:22 am

Hello Dennis,

I’m afraid that we would need further information in order to analyze the issue. May I ask you to contact [email protected] regarding your question?

Thank you in advance.

Sincerely,
Robert
.
Image