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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Martin Duggan
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 ?

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e604a7f7-f4bc-4539-b9d3-7cf81e7a64a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

thivyae
Hi,
Can you specify the chrome driver and browser version? If not latest version,upgrade it to latest..


On Monday, May 22, 2017 at 12:51:50 PM UTC+5:30, Martin Duggan wrote:
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("<a href="http://www.google.ie" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.ie&#39;;return true;" onclick="this.href=&#39;http://www.google.ie&#39;;return true;">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 ?

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b2dcf0eb-1ae1-45b9-aeae-c107065bb031%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Akshat Gupta
In reply to this post by Martin Duggan
Hi, 

Use    http://www.google.in/

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

Thanks.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/bb3fc747-e838-4c5b-9b1d-e34ce205bec1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...