-
-
Notifications
You must be signed in to change notification settings - Fork 758
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
Unable to Initiate Session with WinAppDriver #1592
Comments
Please provide the full server log |
Also:
|
@mykola-mokhnach it would be great if you could provide a sample code with appium 8.0.0-beta |
Code I have written:
Error log:
WinAppDriver server log:
|
Could you please provide the full Appium server log? The code to build capabilities seems to look fine. The issue is rather WinAppDriver itself, that does not understand capabilities in W3C format. We'd probably need to do some fixes there in order to understand these capabilities properly |
So I double checked that and it looks like you are trying to use java client without Appium (e.g. appium-windows-driver), but rather just directly connect to WinAppDriver. Unfortunately it won't work with version 8.0.0 because WinAppDriver does not support W3C protocol. You could follow microsoft/WinAppDriver#1610 for more updates on that |
Hello Team , I am trying to automated notepad using WinAppDriver however I am getting an error ,
My WinAppDriver Error logs :- { {"status":100,"value":{"error":"invalid argument","message":"Bad capabilities. Specify either app or appTopLevelWindow to create a session"}} And my Junit Error log:- |
this format is W3C format as #1592 (comment) . Selenium v4 based client like appium client v8 sends only the W3C one, but WinAppDriver does not handle it until they support the format. One workaround is you need to use appium java client v7 for them. |
Thank You @KazuCocoa for your reply . POM.xml:-
Eclipse Error :- And user is on WinApp # StepDefinitions.NotepadDemo.launchApplication() Could you please check once and let me know what wrong am I doing |
@mykola-mokhnach My code is running fine with Selenium version 3 and Appium java client V7 could you please provide sample code for appium v8 and selenium v4 ? |
The WinAppDriver requires selenium v3 based client for now since Selenium v4 requires W3C spec protocol that is not supported by WinAppDriver yet. |
@KazuCocoa Thank You for your response |
Description
I'm using WinAppDriver with a Java Framework. When I run the test the following log is displayed:
Environment
Details
Following is the code used to initiate the session:
But if I run the same code with the above capabilities using Appium Java Client v7.3.0 and Selenium 3.141 it works fine!
The text was updated successfully, but these errors were encountered: