java-client
java-client copied to clipboard
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Description
I have updated the version appium-java-client to 8.2.0. During the creation of the session, I get an error "org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure."
Environment
Windows 10 Java 11 Appium java-client: 8.2.0 selenium-support: 4.4.0 Appium: 2.0.0-beta.46
- [email protected] [installed (NPM)]
- [email protected] [installed (NPM)]
- [email protected] [installed (NPM)] Node.js: v14.17.6 npm: 8.19.3 Real android 11 device
Code To Reproduce Issue
creating session class pom file
Exception Stacktraces
java stacktrace - run with UiAutomator2Options java stacktrace - run with EspressoOptions
Link To Appium Logs
appium log - run with UiAutomator2Options appium log - run with EspressoOptions
we have the same issue.
I am also facing the same issue
https://stackoverflow.com/questions/71095560/java-lang-nosuchmethoderror-com-google-common-collect-immutablemap-error-when ?
https://stackoverflow.com/questions/71095560/java-lang-nosuchmethoderror-com-google-common-collect-immutablemap-error-when ?
👍
@KazuCocoa thank you for the link. Adding the webdriver manager dependency solved the problem with running UiAutomator2Options. Can you help me to run tests with Espresso options? Is it necessary to change the application build.gradle file to run tests using espresso? I have updated the espresso-run related files (Code To Reproduce Issue, Exception Stacktraces, Link To Appium Logs)
@yamheso Issue is mostly because of your dependencies mismatch. To avoid this please try to use latest versions of your dependencies
Possible dependencies:
- java-client
- selenium-java [Note: selenium-java will have selenium-support so if your pom having both then you can remove selenium-support dependency from pom
- selenium-support
Error: org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
same issue
same issue
https://stackoverflow.com/questions/71095560/java-lang-nosuchmethoderror-com-google-common-collect-immutablemap-error-when