{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"behat mink selenium2 errors","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/496 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"496\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  \n<div class=\"document\">\n\n\n<div class=\"section\" id=\"error-unable-to-create-new-service-geckodriverservice\">\n<h1>Error: Unable to create new service: GeckoDriverService<\/h1>\n<pre class=\"literal-block\">\nBehat\\Mink\\Exception\\DriverException: Could not open connection: Unable to create new service: GeckoDriverService\nBuild info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T16:15:40.131Z'\nSystem 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'\nDriver info: driver.version: unknown\n\nCaused by\nWebDriver\\Exception\\SessionNotCreated: Unable to create new service: GeckoDriverService\nBuild info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T16:15:40.131Z'\nSystem 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'\nDriver info: driver.version: unknown\n<\/pre>\n<\/div>\n<div class=\"section\" id=\"reason\">\n<h1>Reason<\/h1>\n<p>Selenium server does not know where to find the firefox <em>gecko driver<\/em> binary.<\/p>\n<p>Note that you CANNOT simple use \/usr\/bin\/firefox, you need <a class=\"reference external\" href=\"https:\/\/github.com\/mozilla\/geckodriver\/\">https:\/\/github.com\/mozilla\/geckodriver\/<\/a><\/p>\n<\/div>\n<\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/496\/rev-raw\/9d7f519c1518583780e561a2f611be8f5a272998\/phork0.rst\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/496#phork0.rst\">phork0.rst<\/a>\n <\/div>\n<\/div>\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  \n<div class=\"document\">\n\n\n<div class=\"section\" id=\"error-timed-out-waiting-for-driver-server-to-start\">\n<h1>Error: Timed out waiting for driver server to start.<\/h1>\n<pre class=\"literal-block\">\nBehat\\Mink\\Exception\\DriverException: Could not open connection: Timed out waiting for driver server to start.\nBuild info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T16:15:40.131Z'\nSystem 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'\nDriver info: driver.version: unknown\n\nCaused by\nWebDriver\\Exception\\UnknownError: Timed out waiting for driver server to start.\nBuild info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T16:15:40.131Z'\nSystem 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'\nDriver info: driver.version: unknown\n<\/pre>\n<\/div>\n<div class=\"section\" id=\"reason\">\n<h1>Reason<\/h1>\n<p>I tried to use <tt class=\"docutils literal\"><span class=\"pre\">chromium-browser<\/span><\/tt> directly, which is wrong:<\/p>\n<pre class=\"literal-block\">\n$ java -jar -Dwebdriver.chrome.driver=\/usr\/bin\/chromium-browser selenium-server-standalone-3.6.0.jar\n<\/pre>\n<\/div>\n<div class=\"section\" id=\"solution\">\n<h1>Solution<\/h1>\n<p>Use the chromium webdriver:<\/p>\n<pre class=\"literal-block\">\n$ sudo apt install chromium-chromedriver\n$ java -jar -Dwebdriver.chrome.driver=\/usr\/lib\/chromium-browser\/chromedriver selenium-server-standalone-3.6.0.jar\n<\/pre>\n<\/div>\n<\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/496\/rev-raw\/9d7f519c1518583780e561a2f611be8f5a272998\/phork1.rst\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/496#phork1.rst\">phork1.rst<\/a>\n <\/div>\n<\/div>\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  \n<div class=\"document\" id=\"firefox\">\n<h1 class=\"title\">Firefox<\/h1>\n\n<p><a class=\"reference external\" href=\"https:\/\/github.com\/mozilla\/geckodriver\/releases\">https:\/\/github.com\/mozilla\/geckodriver\/releases<\/a><\/p>\n<pre class=\"literal-block\">\n$ java -jar -Dwebdriver.gecko.driver=\/home\/cweiske\/bin\/geckodriver selenium-server-standalone-3.6.0.jar\n<\/pre>\n<\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/496\/rev-raw\/9d7f519c1518583780e561a2f611be8f5a272998\/phork2.rst\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/496#phork2.rst\">phork2.rst<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
