WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

ms:experimental-webdriver breaks findElements with xpath

Open joerg1985 opened this issue 4 years ago • 6 comments

The new option ms:experimental-webdriver breaks driver.findElements and element.findElements in combination with xpath, while it is still possible to find single elements with driver.findElement and element.findElement.

e.g. set ms:experimental-webdriver to true

  • driver.findElement(By.xpath("child::*")) -> returns a webelement
  • driver.findElements(By.xpath("child::*")) -> returns an empty list
  • driver.findElement(By.name("Abbrechen")) -> returns a webelement
  • driver.findElements(By.name("Abbrechen")) -> returns an list with one element

joerg1985 avatar Aug 28 '20 07:08 joerg1985

Are you using Java?

anunay1 avatar Aug 28 '20 07:08 anunay1

@anunay1 yes, i am using the selenium java client

joerg1985 avatar Sep 30 '20 06:09 joerg1985

I'm also experiencing the same issue with ms:experimental-webdriver set to true. Setting it to false yields the correct result. I'm using .NET.

manu-st avatar Nov 16 '20 03:11 manu-st

Any update?

manu-st avatar Jan 13 '21 05:01 manu-st

Any updates?

VitorJeremias avatar Oct 06 '22 17:10 VitorJeremias

I also encountered this bug in Python.

Nativu5 avatar Jul 04 '23 09:07 Nativu5