microsoft / WinAppDriver

Windows Application Driver
MIT License
3.66k stars 1.4k forks source link

WinAppDriver - Unable to get the child elements #1278

Open NadeemBader opened 4 years ago

NadeemBader commented 4 years ago

Hi

I'm trying to get the child elements of specific element using the code below, but seems that it returns the element itself.

var childElm = element.FindElementsByXPath(".//child::*");

I tried the following xpath too, but it doesn't help: "/*" Any suggestions how get all child elements?

Best Regards, Nadeem Bader

liljohnak commented 4 years ago

https://github.com/microsoft/WinAppDriver/issues/669#issuecomment-561897823 This works for our tests: e.FindElementsByXPath("*/*")

NadeemBader commented 4 years ago

Thank you - it works