WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

WinApp Driver Connection Issue?

Open DMSinha opened this issue 2 years ago • 6 comments

I am not able to make a connection to WinApp Driver through my Python code? Everytime, I am running a script it shows a "Bad Request" at WinApp Driver? Could anyone help us with this issue? image

DMSinha avatar Jun 13 '23 01:06 DMSinha

Did you connect to WinAppDriver directly?

vanhungvi avatar Jun 13 '23 07:06 vanhungvi

I think you can connect to Win Driver thru Appium

vanhungvi avatar Jun 13 '23 07:06 vanhungvi

I connected through Appium only, van!

DMSinha avatar Jun 13 '23 08:06 DMSinha

Can you please provide more: your code, appium and winappdriver version?

Are you able to get driver status by postman: http://<your_appium_server>:4723/get ?

Recently I have the same issue after upgrading our selenium to latest release and resolved it.

WindowsOptions options = new WindowsOptions(); options.setApp("C:\\Windows\\System32\\notepad.exe"); options.setCapability("appium:automationName", "windows"); options.setCapability("platformName", "windows"); CalculatorSession = new WindowsDriver(new URL("<your_appium_server>:4723"), options); CalculatorSession.manage().timeouts().implicitlyWait(100, TimeUnit.SECONDS);

vanhungvi avatar Jun 13 '23 08:06 vanhungvi

You are using selenium4, It will not work as winappdriver is not yet W3C compliant. Downgrade to selenium3. Also I would advice not to use appium but winappdriver.exe

anunay1 avatar Jun 13 '23 14:06 anunay1

Please check

anunay1 avatar Jun 13 '23 14:06 anunay1