<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>behat mink selenium2 errors</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/496 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="496"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;div class="section" id="error-unable-to-create-new-service-geckodriverservice"&gt;
&lt;h1&gt;Error: Unable to create new service: GeckoDriverService&lt;/h1&gt;
&lt;pre class="literal-block"&gt;
Behat\Mink\Exception\DriverException: Could not open connection: Unable to create new service: GeckoDriverService
Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T16:15:40.131Z'
System info: host: 'gpc-rom', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.12.3cw', java.version: '1.8.0_131'
Driver info: driver.version: unknown

Caused by
WebDriver\Exception\SessionNotCreated: Unable to create new service: GeckoDriverService
Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T16:15:40.131Z'
System info: host: 'gpc-rom', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.12.3cw', java.version: '1.8.0_131'
Driver info: driver.version: unknown
&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="section" id="reason"&gt;
&lt;h1&gt;Reason&lt;/h1&gt;
&lt;p&gt;Selenium server does not know where to find the firefox &lt;em&gt;gecko driver&lt;/em&gt; binary.&lt;/p&gt;
&lt;p&gt;Note that you CANNOT simple use /usr/bin/firefox, you need &lt;a class="reference external" href="https://github.com/mozilla/geckodriver/"&gt;https://github.com/mozilla/geckodriver/&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/496/rev-raw/9d7f519c1518583780e561a2f611be8f5a272998/phork0.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/496#phork0.rst"&gt;phork0.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;div class="section" id="error-timed-out-waiting-for-driver-server-to-start"&gt;
&lt;h1&gt;Error: Timed out waiting for driver server to start.&lt;/h1&gt;
&lt;pre class="literal-block"&gt;
Behat\Mink\Exception\DriverException: Could not open connection: Timed out waiting for driver server to start.
Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T16:15:40.131Z'
System info: host: 'gpc-rom', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.12.3cw', java.version: '1.8.0_131'
Driver info: driver.version: unknown

Caused by
WebDriver\Exception\UnknownError: Timed out waiting for driver server to start.
Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T16:15:40.131Z'
System info: host: 'gpc-rom', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.12.3cw', java.version: '1.8.0_131'
Driver info: driver.version: unknown
&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="section" id="reason"&gt;
&lt;h1&gt;Reason&lt;/h1&gt;
&lt;p&gt;I tried to use &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;chromium-browser&lt;/span&gt;&lt;/tt&gt; directly, which is wrong:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
$ java -jar -Dwebdriver.chrome.driver=/usr/bin/chromium-browser selenium-server-standalone-3.6.0.jar
&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="section" id="solution"&gt;
&lt;h1&gt;Solution&lt;/h1&gt;
&lt;p&gt;Use the chromium webdriver:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
$ sudo apt install chromium-chromedriver
$ java -jar -Dwebdriver.chrome.driver=/usr/lib/chromium-browser/chromedriver selenium-server-standalone-3.6.0.jar
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/496/rev-raw/9d7f519c1518583780e561a2f611be8f5a272998/phork1.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/496#phork1.rst"&gt;phork1.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document" id="firefox"&gt;
&lt;h1 class="title"&gt;Firefox&lt;/h1&gt;

&lt;p&gt;&lt;a class="reference external" href="https://github.com/mozilla/geckodriver/releases"&gt;https://github.com/mozilla/geckodriver/releases&lt;/a&gt;&lt;/p&gt;
&lt;pre class="literal-block"&gt;
$ java -jar -Dwebdriver.gecko.driver=/home/cweiske/bin/geckodriver selenium-server-standalone-3.6.0.jar
&lt;/pre&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/496/rev-raw/9d7f519c1518583780e561a2f611be8f5a272998/phork2.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/496#phork2.rst"&gt;phork2.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
