Open 232629 opened 1 year ago
232629 Per your log you got WebDriverException error but findElement will return “No Such Element Exception” on timeout. Looks like some issue with your code (maybe the session is incorrect) or maybe you cannot connect to WinAppDriver.
Unfortunately, I didn't familiar with Java but can you try using code from here: https://github.com/microsoft/WinAppDriver/blob/master/Samples/Java/CalculatorTest/src/test/java/CalculatorTest.java
232629 Per your log you got WebDriverException error but findElement will return “No Such Element Exception” on timeout. Looks like some issue with your code (maybe the session is incorrect) or maybe you cannot connect to WinAppDriver.
Unfortunately, I didn't familiar with Java but can you try using code from here: https://github.com/microsoft/WinAppDriver/blob/master/Samples/Java/CalculatorTest/src/test/java/CalculatorTest.java
This code is only for a specific Windows application.
capabilities.setCapability("app", "Microsoft.WindowsCalculator_8wekyb3d8bbwe!App");
I have no problems with it. It works.
I have a problem when working with Desktop Session. ("app", "Root") Example taken from FAQ When and how to create a Desktop Session
appCapabilities.SetCapability("app", "Root");
Appium v1.22.3 Java 1.8 WinAppDriver 1.2.2009.2003
Steps
Issue If the element does not exist, I have to wait 240 seconds. I can't change this timeout. The existing element is working.
winDriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); Appium log
winDriver.findElementByName("BadName").click(); Appium log
Error