But I am getting the following error: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
I don’t understand why. Just as additional information, I am able to run the Appium inspector without any issues. However, I am unable to run only that Java file.
1 step) Terminal> % appium than getting welcome message of Appium
[Appium] Welcome to Appium v2.5.3
…
Appium] Appium REST http interface listener started on http://0.0.0.0:4723
[Appium] You can provide the following URLs in your client code to connect to this server:
[Appium] http://127.0.0.1:4723/ (only accessible from the same host)
[Appium] http://10.0.0.1:4723/
[Appium] http://169.254.87.83:4723/
[Appium] Available drivers:
[Appium] - [email protected] (automationName ‘XCUITest’)
[Appium] - [email protected] (automationName ‘UiAutomator2’)
[Appium] - [email protected] (automationName ‘Safari’)
…
2 step) trying run Java file and getting error
Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
P.S
What is interesting Appium Inspector working well but by Java it doesn’t work!
Thank you for support, but I solved it in next way!
I just changed Java Client in mvnrepository from last one 9.2.3 to 8.6.0 , strange it doesn’t work in versions over than 8.6.0
Solved! Thanks for the support. The issue was with my IDE; I updated the JDK to the latest version, and now it’s working well even in 9.2.2! However, I’ve noticed there’s an issue with 9.2.3.
I have the same issue but it only happens if I update the java-client lib to the 9.2.3 version. If instead of that I use the 9.2.2 it works with no problems. And all the code remains the same way.