Exception in thread "main" org.openqa.selenium.NoSuchSessionException: no such session

81 views
Skip to first unread message

Martin Duggan

unread,
May 22, 2017, 3:21:50 AM5/22/17
to Selenium Users
Hi im trying to open up a chrome browser in linux

this is my code 

public static void main(String[] args) throws InterruptedException,
AWTException {


System.setProperty("webdriver.chrome.driver",
"/usr/bin/chromedriver");


WebDriver ChromeDriverToOpen = new ChromeDriver();
ChromeDriverToOpen.get("www.google.ie");

}

And this is the error i get.

Exception in thread "main" org.openqa.selenium.NoSuchSessionException: no such session
  (Driver info: chromedriver=2.10.267518,platform=Linux 4.4.0-75-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 18 milliseconds
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:48:19 -0700'

Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{message=unknown error: unrecognized Blink revision: ac0bae59f0aa5b391517e132bf172144b1939333
  (Driver info: chromedriver=2.10.267518,platform=Linux 4.4.0-75-generic x86_64), platform=ANY}]
Session ID: 8e05979fd1e201b62e3cc89ab22d876b
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:216)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:168)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:635)
at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:322)
at TestWeb.main(TestWeb.java:42)

Any clues to where im going wrong ?

thi...@thoughtworks.com

unread,
May 26, 2017, 8:54:06 AM5/26/17
to Selenium Users
Hi,
Can you specify the chrome driver and browser version? If not latest version,upgrade it to latest..

Akshat Gupta

unread,
May 29, 2017, 1:04:15 AM5/29/17
to Selenium Users
Hi, 


WebDriver only responds to http requests. Add http before your url.

Thanks.
Reply all
Reply to author
Forward
0 new messages