Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinApp Driver Connection Issue? #1905

Open
DMSinha opened this issue Jun 13, 2023 · 6 comments
Open

WinApp Driver Connection Issue? #1905

DMSinha opened this issue Jun 13, 2023 · 6 comments

Comments

@DMSinha
Copy link

DMSinha commented Jun 13, 2023

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

@vanhungvi
Copy link

Did you connect to WinAppDriver directly?

@vanhungvi
Copy link

I think you can connect to Win Driver thru Appium

@DMSinha
Copy link
Author

DMSinha commented Jun 13, 2023

I connected through Appium only, van!

@vanhungvi
Copy link

vanhungvi commented Jun 13, 2023

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);

@anunay1
Copy link

anunay1 commented Jun 13, 2023

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
Copy link

anunay1 commented Jun 13, 2023

Please check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants