selenium: [Facebook\WebDriver\Exception\SessionNotCreatedException] Unable to create new service: ChromeDriverService

Meta -

OS: MAC

Selenium Version: 3.6

Browser: Chrome, Firefox

Browser Version:
Chrome Version - 61.0.3163.100

Firefox Version - 56.0 (64-bit)

Expected Behavior -

It should open the browser and script should run

Actual Behavior -

Script is not running.

Check the log here - Selenium Log -

11:52:26.038 INFO - Selenium build info: version: '3.6.0', revision: '6fbf3ec767'
11:52:26.038 INFO - Launching a standalone Selenium Server
2017-10-06 11:52:26.069:INFO::main: Logging initialized @333ms to org.seleniumhq.jetty9.util.log.StdErrLog
11:52:26.135 INFO - Driver class not found: com.opera.core.systems.OperaDriver
11:52:26.172 INFO - Driver provider class org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
 registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform MAC
11:52:26.172 INFO - Driver provider class org.openqa.selenium.edge.EdgeDriver registration is skipped:
 registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform MAC
11:52:26.227 INFO - Using the passthrough mode handler
2017-10-06 11:52:26.270:INFO:osjs.Server:main: jetty-9.4.5.v20170502
2017-10-06 11:52:26.303:WARN:osjs.SecurityHandler:main: ServletContext@o.s.j.s.ServletContextHandler@eec5a4a{/,null,STARTING} has uncovered http methods for path: /
2017-10-06 11:52:26.310:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler@eec5a4a{/,null,AVAILABLE}
2017-10-06 11:52:26.354:INFO:osjs.AbstractConnector:main: Started ServerConnector@9660f4e{HTTP/1.1,[http/1.1]}{0.0.0.0:4444}
2017-10-06 11:52:26.356:INFO:osjs.Server:main: Started @620ms
11:52:26.356 INFO - Selenium Server is up and running
2017-10-06 11:52:38.203:INFO:osjshC.ROOT:qtp971848845-11: org.openqa.selenium.remote.server.WebDriverServlet-28d25987: Initialising WebDriverServlet
11:52:38.254 INFO - Binding default provider to: org.openqa.selenium.chrome.ChromeDriverService
11:52:38.255 INFO - Found handler: org.openqa.selenium.remote.server.commandhandler.BeginSession@124a951f
11:52:38.260 INFO - /session: Executing POST on /session (handler: BeginSession)
11:52:38.326 INFO - Capabilities are: Capabilities {browserName=chrome}
11:52:38.327 INFO - Capabilities {browserName=chrome} matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverService)
11:52:38.328 INFO - Capabilities {browserName=chrome} matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverService)

Script Log -

Test  tests/acceptance/testCept.php
                                                                                                                                                                                                                                                                                                                                                                                           
  [Facebook\WebDriver\Exception\SessionNotCreatedException] Unable to create new service: ChromeDriverService
Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T16:15:40.131Z'
System info: host: 'krupa.local', ip: '192.168.0.100', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.6', java.version: '1.8.0_111'
Driver info: driver.version: unknown  

Steps to reproduce -

I am running my script for codeception test. Once I run the script it thorws the exception shown above.

Please help me to fix this issue.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 2
  • Comments: 19 (6 by maintainers)

Most upvoted comments

I had the same issue the resolving might looks stupid but it helpd to me I just download the latest chromedriver.exe and put it to the same folder where Selenium Standalone Server is loacated run the server one more time and now everything works as expected

This is the output of Chromedriver in terminal

Starting ChromeDriver 2.33.506106 (8a06c39c4582fbfbab6966dbb1c38a9173bfb1a2) on port 9515 Only local connections are allowed.

Running the test will throw the same exception.

[Facebook\WebDriver\Exception\SessionNotCreatedException] Unable to create new service: ChromeDriverService
Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T16:15:40.131Z'
System info: host: 'krupa.local', ip: '192.168.0.100', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.6', java.version: '1.8.0_111'
Driver info: driver.version: unknown  ```