Comments (5)
This seems to be similar to following:-
- appium.io changing my capabilities for WinAppDriver and therefore not working
- appId supplied but not found
Try initializing driver as below and see whether it resolved the issue:-
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("app", "C:\\Windows\\System32\\notepad.exe");
capabilities.setCapability("platformName", "Windows");
capabilities.setCapability("deviceName", "WindowsPC");
capabilities.setCapability("automationName", "Windows");
//driver = new WindowsDriver(new URL("http://127.0.0.1:4723/"), capabilities);
HttpCommandExecutor exec = new HttpCommandExecutor(new URL("http://127.0.0.1:4723/"));
driver = new WindowsDriver(exec, capabilities);
I am not sure what is the underlying root cause, but I am guessing this happens because Appium changes "app" to "appium:app" and WinAppDriver is expecting "app" as WinAppDriver is not W3C Complaint.
from java-client.
Hey @johanrosabal, complementing the @itkhanz response, this error may occur when you try to run WinAppDriver with Appium java and Selenium 4.
Make sure to use the appium-windows-driver in order to make WinAppDriver compatible with Selenium 4 and consequently, W3C standards.
from java-client.
from java-client.
Take a look at the compatibility matrix of Appium Java Client and Selenium Client in Java.
For example, you can use Appium 9.2.3 and Selenium 4.21.0.
The problem is, if you are using Selenium 4 and Appium, you would need to use appium-windows-driver which is a proxy over WinAppDriver in order to support Selenium 4 commands.
from java-client.
from java-client.
Related Issues (20)
- Do you plan to provide an extended Driver like UiAutomator2Options?
- getImagesSimilarity(byte[] base64image1, byte[] base64Image2) is not supported by the mapped resource HOT 3
- org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. HOT 2
- IOSFindBy & AndroidFindBy with parametrs HOT 1
- Unable to find Element in PageFactory
- Appium compatibility issue: Need appium version that is compatible with Selenium 4.18.1 HOT 8
- I got an issue for appium automation using java SyntaxError: Cannot use import statement outside a module
- Appium 2.0: Not able to click on image locator HOT 2
- startLogcatBroadcast does not respect https
- Android - Error when trying to use sendKey or clear function on WebElement obtained with driver.findElement(new AppiumBy.ByAndroidViewTag("myTag")); HOT 1
- Did you stop prefixing capabilities with 'appium:' in the latest java client? HOT 3
- [Issue]: Original error: Appium Settings app is not running after 5000ms HOT 5
- [Issue]: Original error: Appium Settings app is not running after 5000ms HOT 2
- This repository's wiki links to non-existent pages. (404) HOT 4
- How to continue execution even after the step failed in cucumber 7.18.0 HOT 1
- java.lang.NoClassDefFoundError: org/openqa/selenium/HasDownloads HOT 4
- Exception is Cannot invoke "io.appium.java_client.android.AndroidDriver.navigate()" because "this.driver" is null HOT 1
- For me not getting how to navigate the once the app was login and home page is displayed but for me not getting how to navigate home page to another page
- Not able to start appium server in eclipse console HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-client.