Two days ago I was able to use
remDr<-remoteDriver(remoteServerAddr = "localhost", port=4444, browserName = "chrome")
remDr$open()
and proceed to open chrome, navigate to a page and login to it.
Today, following the same procedure, I got this error
Selenium message:Unable to create new service: ChromeDriverService
Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T16:15:40.131Z'
System info: host: 'ATHENALAP', ip: '*******', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_151'
Driver info: driver.version: unknown
Error: Summary: SessionNotCreatedException
Detail: A new session could not be created.
Further Details: run errorDetails method
I am using Windows 10.
I have the standalone jar file to a folder with only Latin characters, and I open Windows PowerShell and run
java -jar selenium-server-standalone-3.6.0.jar
command. This was mandatory to log in to the page.
Maybe there is a problem with the version of chromedriver? (but still, why did it happen without changing anything?)
Thank you.
Make sure that you have upgraded:
Just wanted to share my recent experience with Chrome web driver. I am on Windows 10 and I am using protractor with node.js. I ran functional tests seamlessly until got the same error: Unable to create new service: ChromeDriverService
After investigation of the issue I found that I have the most recent version of Chrome while chrome web driver is not updated. So I ran
webdriver-manager update --chromedriver
The tests run fine again.
You probably have a similar command for your environment. I hope it will be helpful.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.