I am trying to automate Windows app using Win app driver, How can we select item from the list using java?
WindowsElement comboBoxElement1= (WindowsElement) DesktopSession.findElementsByXPath("//List[@Name='Select Outlet:']//*[starts-with(@AutomationId,'listBox')]");
comboBoxElement1.findElementByName("!xyz").click();
I am getting error as not being able to locate the element. Also most of the cases findElementByXpath
is not working.
UI looks as below: