You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@timotiusmargo
I'm trying to get root desktop session and identify opened windows and written code as shown below:
DesiredCapabilities DC = new DesiredCapabilities();
DC.SetCapability("platFormName", "Windows");
DC.SetCapability("app", "Root");
DC.SetCapability("deviceName", "WindowsPC");
session = new WindowsDriver<WindowsElement>(new Uri("http://127.0.0.1:4723"), DC);
//For Line below it returns with windows list whose classname is 'Window'
var openWindows = session.FindElementsByClassName("Window");
Actual: //For Line below it returns NULL (Issue)
openWindows = session.FindElementsByXPath("//*");
Expected: It should return all children under desktop
Please find the screenshots below:
Image1: Issue
Image2: Works with ClassName
The text was updated successfully, but these errors were encountered:
Thanks for bringing it up. There is a known bug that causes the XPath element search to terminate early when it encounters duplicate runtimeId. For the time being you will need to use non XPath elements search until the issue is fixed.
In WinAppDriver v1.1.1 release, we properly handle the exception scenario where distinct elements share the same runtimeId. This issue prematurely terminate XPath element search in previous releases. Would you please give it a try?
Hi,
@timotiusmargo
I'm trying to get root desktop session and identify opened windows and written code as shown below:
Expected: It should return all children under desktop
Please find the screenshots below:
Image1: Issue
Image2: Works with ClassName
The text was updated successfully, but these errors were encountered: