WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

elements api does not work with xpath

Open Jiurong-Yang opened this issue 4 years ago • 2 comments

WinAppDriver version: 1.2.1

Link to appium log: https://gist.github.com/Jiurong-Yang/f1484a79aace7dcdb71782dc0eafa9b4

As you can see when using find_element with the xpath value of "//*[@Name='Shortcuts']" the object is found when using find_elements, nothing is returned

In fact find_elements with xpath of "//*" doesn't even return anything either. Pretty sure this is a bug on the driver side. When using find_elements with other locating strategy ("name", "class_name", accessibility_id", etc) there are no issues.

Jiurong-Yang avatar Nov 03 '21 02:11 Jiurong-Yang

I have the same problem. Did you find any solution in the end?

Nativu5 avatar Jul 04 '23 08:07 Nativu5

I have the same problem. Did you find any solution in the end?

Hi, Yeah I think I did find the problem. It depends on if you are using the experimental webdriver in the desired capabilities for me. Turning that off solved this issue for me.

Jiurong-Yang avatar Jul 05 '23 19:07 Jiurong-Yang