I have been using Selenium Webdriver with Chromium and everything works perfectly. However, when I try to switch to Chrome (which I prefer because it supports headless mode in the latest version), I encounter a problem where Chrome fails to start up properly.
Error message: WebDriverError: unknown error: Chrome failed to start: exited abnormally (Driver info: chromedriver=2.29.461571 (8a88bbe0775e2a23afda0ceaf2ef7ee74e822cc5),platform=Linux 4.2.8.11-1-MANJARO x86_64)
var selenium = require ('selenium-webdriver'),
By = selenium.By,
until = selenium.until,
Select = selenium.Select;
var chrome = require ("selenium-webdriver/chrome");
var o = new chrome.Options();
o.setChromeBinaryPath( "/opt/google/chrome-unstable/");
var service = new chrome.ServiceBuilder()
.loggingTo('/tmp/chromescraper.txt')
.enableVerboseLogging()
.build();
var driver = chrome.Driver.createSession(o, service);
driver.get ("http://news.google.com");
Has anyone encountered this issue before? Any suggestions on how to resolve it?