WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Bad capabilities. Specify either app or appTopLevelWindow to create a session" Error given by the WinApp driver

Open hritha opened this issue 2 years ago • 4 comments

I am getting the below error when using the WinApp driver for the desktop automation." Bad capabilities. Specify either app or appTopLevelWindow to create a session"

Selenium - 4.2 appium - 8.1.0

It's java application DesiredCapabilities caps = new DesiredCapabilities(); caps.setCapability("platformName", "Windows"); caps.setCapability("deviceName", "WindowsPC"); caps.setCapability("appWorkingDir", "C:\Program Files (x86)\RSA SecurID Software Token"); caps.setCapability("app", "C:\Program Files (x86)\RSA SecurID Software Token\SecurID.exe"); try { ProcessBuilder pBuilder = new ProcessBuilder("C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe").inheritIO(); proc = pBuilder.start(); try { rsa = new WindowsDriver(new URL("http://127.0.0.1:4723/"), caps); Assert.assertNotNull(rsa); } catch (Exception ex) { }

Please share some suggestions on this issue

hritha avatar Sep 21 '23 20:09 hritha

You need to downgrade to selenium 3.

anunay1 avatar Sep 22 '23 10:09 anunay1

i am also facing the same issue

dhinaQA avatar Oct 03 '23 11:10 dhinaQA

i am also facing the same issue

Have you downgraded selenium to version3?

anunay1 avatar Oct 03 '23 14:10 anunay1

Selenium 3 is supporting there is no issue. But the issue with Selenium 4 which is not supporting WinApp driver. Any inputs to support for selenium 4?

NDqatest avatar Oct 27 '23 04:10 NDqatest