-
-
Notifications
You must be signed in to change notification settings - Fork 760
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
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure #2144
Comments
Please attach the full appium server log |
Today i am not able to start the server via my code org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. |
Hi @ANSHUL786 |
@simonberner -- The latest version of java client is 9.2.0...where did you get 9.2.1 from? |
I am seeing the exact same issue as well. Updated Appium to 2.5.1 and also updated Java client to 9.2.0. Any help in fixing this issue is greatly appreciated |
UPDATE: appium java-client from v9.2.0 to v9.2.1 did the trick. But I am still puzzled about how do we know to use 9.2.1 when maven website only shows 9.2.0 as latest: https://mvnrepository.com/artifact/io.appium/java-client |
hit the same error with 9.2.0 using selenium 4.19. After explicitly specifying the selenium version to 4.18.1, this issue get fixed. Maybe selenium 4.19 changes causing the problem? https://github.com/SeleniumHQ/selenium/blob/acd9d0e77dc5a5a39c3a95a5aa0e94a6c4161fe7/java/CHANGELOG#L1 @KazuCocoa |
@sanjaneya-chwy see https://github.com/appium/java-client/releases |
I am still having this issue using And I am sure my Appium Server is working as I can connect to it using Appium Inspector using the same capabilities.
|
an update on this, it turned out the cache was the culprit. after changing to the above combination and reloading the mavin project fixed the issue. |
@ANSHUL786 Please use mentioned below dependencies. I hope your error will be resolved. io.appium java-client 9.2.2 org.seleniumhq.selenium selenium-remote-driver 4.13.0 org.seleniumhq.selenium selenium-support 4.12.0 |
Do I have the most recent component updates?
Is the component officially supported by the Appium team?
Is there an existing issue for this?
Current Behavior
when i am trying to run my appium code
getting below error
FAILED CONFIGURATION: @BeforeClass UAApp.BaseComponent.AndroidBaseTest.configureAppium
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Yesterday it is working fine.
Expected Behavior
it should start execution.
Minimal Reproducible Example
@test
public void startTest(){
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("deviceName", "oneplus7");
caps.setCapability("platformVersion", "12");
caps.setCapability("ignoreHiddenApiPolicyError" , true);
caps.setCapability("app", System.getProperty("user.dir") + "/src/test/java/resources/UA_QA_APP.apk");
caps.setCapability("automationName", "UiAutomator2");
driver = new AndroidDriver(new URI("http://127.0.0.1:4723").toURL(), caps);
}
Environment
appium --version
):2.5.1node --version
):npm
version (output ofnpm --version
):Link to Appium Logs
No response
Further Information
No response
The text was updated successfully, but these errors were encountered: