java-client icon indicating copy to clipboard operation
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.

Open yamheso opened this issue 2 years ago • 8 comments

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

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

yamheso avatar Nov 23 '22 06:11 yamheso

we have the same issue.

smdelacruz avatar Dec 07 '22 14:12 smdelacruz

I am also facing the same issue

Faizan-Mamji avatar Dec 09 '22 08:12 Faizan-Mamji

https://stackoverflow.com/questions/71095560/java-lang-nosuchmethoderror-com-google-common-collect-immutablemap-error-when ?

KazuCocoa avatar Dec 09 '22 08:12 KazuCocoa

https://stackoverflow.com/questions/71095560/java-lang-nosuchmethoderror-com-google-common-collect-immutablemap-error-when ?

👍

Faizan-Mamji avatar Dec 09 '22 09:12 Faizan-Mamji

@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 avatar Dec 12 '22 12:12 yamheso

@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.

sudha61286 avatar Aug 09 '23 04:08 sudha61286

same issue

vadlachary2002 avatar Nov 22 '23 05:11 vadlachary2002

same issue

https://stackoverflow.com/questions/71095560/java-lang-nosuchmethoderror-com-google-common-collect-immutablemap-error-when

Faizan-Mamji avatar Nov 22 '23 06:11 Faizan-Mamji