Page 1 of 1

Difficulties with finding xpath elements on Windows 10

Posted: Mon Jan 04, 2016 6:04 pm
by Dennis
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.

Re: Difficulties with finding xpath elements on Windows 10

Posted: Tue Jan 05, 2016 10:22 am
by Support Team
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