I had problems running the Cucumber test using Chrome using the remote webdriver capabilities on the Grid (1 linux hub and 1 linux node with Firefox and Chrome). The Firefox test went very well, but Chrome returns the following error:
unknown error: Chrome failed to start: exited abnormally (Driver info: chromedriver=2.2,platform=Linux 3.2.0-23-generic-pae x86) (WARNING: The server did not provide any stacktrace information) java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException Command duration or timeout: 20.67 seconds Build info: version: '2.30.0', revision: 'dc1ef9c', time: '2013-02-19 00:15:27' System info: os.name: 'Linux', os.arch: 'i386', os.version: '3.2.0-23-generic-pae', java.version: '1.7.0_25' Driver info: org.openqa.selenium.chrome.ChromeDriver (org.openqa.selenium.WebDriverException) (Selenium::WebDriver::Error::UnknownError)
The browser is initialized as:
$profile = Selenium::WebDriver::Chrome::Profile.new $profile['download.prompt_for_download'] = false $profile['download.default_directory'] = downloads_path capabilities = Selenium::WebDriver::Remote::Capabilities.chrome( platform: "Linux", version: "", "chrome.profile" => $profile) browser = Watir::Browser.new( :remote, :url => 'http://aut.theurl.net:4444/wd/hub', :desired_capabilities => capabilities)
Additional Information:
- I tried versions 2.3 and 2.2 with a chronograph and selenium-server-stand-alone versions 2.35 and 2.3 unsuccessfully.
- Although the terminal, chromedriver starts up successfully, so the paths seem to be in order.
It seems that Chrome runs on the remote node device, but it crashes immediately. I am a little out of ideas, so any thought or guide is welcome.
Thanks in advance!
=====================================
UPDATE: added additional information about console logs. Maybe there was more information, but I do not see anything of value.
11:45:47.612 WARN - Exception thrown java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException Build info: version: '2.35.0', revision: 'c916b9d', time: '2013-08-12 15:42:01' System info: os.name: 'Linux', os.arch: 'i386', os.version: '3.2.0-23-generic-pae', java.version: '1.7.0_25' Driver info: driver.version: unknown at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) (...) Caused by: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException Build info: version: '2.35.0', revision: 'c916b9d', time: '2013-08-12 15:42:01' System info: os.name: 'Linux', os.arch: 'i386', os.version: '3.2.0-23-generic-pae', java.version: '1.7.0_25' Driver info: driver.version: unknown at org.openqa.selenium.remote.server.DefaultDriverFactory.callConstructor(DefaultDriverFactory.java:72) at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:56) (...) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.openqa.selenium.remote.server.DefaultDriverFactory.callConstructor(DefaultDriverFactory.java:62) ... 9 more Caused by: org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally (Driver info: chromedriver=2.2,platform=Linux 3.2.0-23-generic-pae x86) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 20.53 seconds Build info: version: '2.35.0', revision: 'c916b9d', time: '2013-08-12 15:42:01' System info: os.name: 'Linux', os.arch: 'i386', os.version: '3.2.0-23-generic-pae', java.version: '1.7.0_25' Driver info: org.openqa.selenium.chrome.ChromeDriver at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) (...) 11:45:47.612 WARN - Exception: unknown error: Chrome failed to start: exited abnormally (Driver info: chromedriver=2.2,platform=Linux 3.2.0-23-generic-pae x86) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 20.53 seconds Build info: version: '2.35.0', revision: 'c916b9d', time: '2013-08-12 15:42:01' System info: os.name: 'Linux', os.arch: 'i386', os.version: '3.2.0-23-generic-pae', java.version: '1.7.0_25' Driver info: org.openqa.selenium.chrome.ChromeDriver