WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

while searching for all child windows in a parent window, result includes the parent window also

Open vaib-ag opened this issue 7 years ago • 0 comments

When i am trying to search for all available windows inside a parent window I get 2 result set. 1 for the parent window itself 2 for the child window

root = desktopSession.findElementByXPath("//Window[contains(@Name, 'InfoSphere DataStage Designer')]"); List d=root.findElements(By.tagName("Window")); System.out.println(d.size()); System.out.println(d.get(0).getAttribute("Name")); System.out.println(d.get(1).getAttribute("Name"));

output -

2 InfoSphere DataStage Designer - DELVM07S08\dstage1 Parallel - dummy1

vaib-ag avatar Mar 28 '19 03:03 vaib-ag