Rselenium wont open chrome

2,622 views
Skip to first unread message

lual...@colorado.edu

unread,
Mar 13, 2019, 3:32:15 AM3/13/19
to Selenium Users
Hi everyone, 

Today for some reason my script will not open chrome. I have tried previous versions of chrome. It worked yesterday and nothing has changed as far as I know. Here is the script/error: 

Thanks,

Luis





rD$server$stop()
rD<- rsDriver(browser = "chrome")


Error:
  



Selenium message:session not created: This version of ChromeDriver only supports Chrome version 74
  (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Windows NT 10.0.17763 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 852 milliseconds
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'DESKTOP-8REJV1H', ip: '192.168.0.15', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_201'
Driver info: driver.version: unknown

Could not open chrome browser.
Client error message:
	 Summary: SessionNotCreatedException
 	 Detail: A new session could not be created.
	 Further Details: run errorDetails method
Check server log for further details.

Message has been deleted

Tany S

unread,
Mar 13, 2019, 4:28:53 AM3/13/19
to seleniu...@googlegroups.com
Hi

Chrome 74 stable version is not yet launched. Chrome 74 dev version is launched. But latest chrome driver is looking for chrome browser 74.
That is the reason of the issue. 

I don't know there is any solution but I can suggest you an workaround. 

Go to .m2 folder and navigate to chrome driver and copy cromedriver. exe from 73 folder to 74 folder. 
Hope that will work. 

--
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 selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b7325a40-7a4c-4294-8dff-c9837b8b9704%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shawn McCarthy

unread,
Mar 13, 2019, 10:55:54 AM3/13/19
to Selenium Users
Are you using https://chromedriver.storage.googleapis.com/index.html?path=74.0.3729.6/ ? If so, that version of chromedriver is only for chrome 74. If you have chrome 73, make sure the driver starts with 73. Or you can use https://chromedriver.storage.googleapis.com/index.html?path=2.46/ with chrome 73.

sachin patil

unread,
Mar 14, 2019, 1:17:00 AM3/14/19
to seleniu...@googlegroups.com
Hi Team, 


I am also facing the same issue.

Works fine with below code , 
System.setProperty("webdriver.chrome.driver",driverPath+"\\FileDriver\\chromedriver.exe" );
driver = new ChromeDriver();  

Does not works with below code,

WebDriverManager.chromedriver().setup();
       driver = new ChromeDriver();


Below error i am getting,

org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 74


Best Regard
Sachin Patil
+91-9552619077



--
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 selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.

Joe Ward

unread,
Mar 14, 2019, 6:21:23 PM3/14/19
to seleniu...@googlegroups.com
I assume WebDriverManager in your above snipped refers to this?


If so, as per the README of that project, it's probably doing exactly what is described in a previous post (using the latest version of Chromedriver, which does not appear to be compatible with any version of Chrome <74). You can change this behavior using WebDriverManager API, which is also specified under the README here https://github.com/bonigarcia/webdrivermanager#webdrivermanager-api.

Hope this helps.

sachin patil

unread,
Mar 15, 2019, 1:39:15 AM3/15/19
to seleniu...@googlegroups.com
Hi Joe,


Before this chrome Version 73.0.3683.75 (Official Build) (64-bit) my scripting was working fine but now i am getting below error.

org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 74


I want use "WebDriverManager.chromedriver().setup();" instead of "System.setProperty("webdriver.chrome.driver",driverPath+"\\FileDriver\\chromedriver.exe" );"



Working fine with System.setProperty("webdriver.chrome.driver",driverPath+"\\FileDriver\\chromedriver.exe" );


Any solution for it?

 

Best Regard
Sachin Patil
+91-9552619077


Joe Ward

unread,
Mar 15, 2019, 4:33:42 AM3/15/19
to seleniu...@googlegroups.com
I literally answered your question in my reply already. 

sachin patil

unread,
Mar 16, 2019, 12:27:39 AM3/16/19
to seleniu...@googlegroups.com
So is there any solution for the same?

Best Regard
Sachin Patil
+91-9552619077


Joe Ward

unread,
Mar 16, 2019, 6:17:52 AM3/16/19
to seleniu...@googlegroups.com
I am very confused. I posted the solution in my answer. Did you try what I wrote and found it didn't work?

shailender g

unread,
Mar 17, 2019, 3:22:44 AM3/17/19
to seleniu...@googlegroups.com
Sachin, did you find your  answer. If not read documentation at the link posted by Joe. You will see API to get driver fr your version of chrome.

sachin patil

unread,
Mar 18, 2019, 12:12:04 AM3/18/19
to seleniu...@googlegroups.com
    

Thanks, Joe Ward  and Shailender.


That solution works for me.


Best Regard
Sachin Patil
+91-9552619077


Raju

unread,
Mar 27, 2019, 6:03:47 PM3/27/19
to Selenium Users
Hi Sachin,

Can you please paste your full solution here. I am not able comprehend fully. Thanks

sachin patil

unread,
Mar 28, 2019, 1:24:59 AM3/28/19
to seleniu...@googlegroups.com
Hi Raju, 

I did it work just by adding a new dependency for WebDriverManager.

See the latest dependency.

<!-- https://mvnrepository.com/artifact/io.github.bonigarcia/webdrivermanager -->

<dependency>

<groupId>io.github.bonigarcia</groupId>

<artifactId>webdrivermanager</artifactId>

<version>3.3.0</version>

</dependency>


And My chrome version is Version 73.0.3683.86 (Official Build) (64-bit).



Best Regard
Sachin Patil
+91-9552619077


Reply all
Reply to author
Forward
0 new messages