Изменила путь
caps = DesiredCapabilities.chrome();
// Add ChromeDriver-specific capabilities through ChromeOptions.
ChromeOptions options = new ChromeOptions();
options.setBinary("/usr/bin/google-chrome");
caps.setCapability(ChromeOptions.CAPABILITY, options);
Хром стал открываться, но почему то помечается как dead, убивается и создается снова. С firefox таких проблем нет.
10:20:14.361 INFO com.xxx.friendly_iframes.script_inside.FriendlyIframeTest -> Running tests on environment chrome
Aug 14, 2017 10:20:14 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer getWebDriver
INFO: No webdriver is bound to current thread: 12 - let's create new webdriver
Starting ChromeDriver 2.31.488763 (092de99f48a300323ecf8c2a4e2e7cab51de5ba8) on port 19171
Only local connections are allowed.
Aug 14, 2017 10:20:15 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Aug 14, 2017 10:20:15 AM com.codeborne.selenide.webdriver.WebDriverFactory createWebDriver
INFO: BrowserName=chrome Version=60.0.3112.90 Platform=LINUX
Aug 14, 2017 10:20:15 AM com.codeborne.selenide.webdriver.WebDriverFactory createWebDriver
INFO: Selenide v. 4.5.1
Aug 14, 2017 10:20:15 AM com.codeborne.selenide.webdriver.WebDriverFactory createWebDriver
INFO: Selenium WebDriver v. 3.4.0 build time: unknown
Aug 14, 2017 10:20:15 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer createDriver
INFO: Create webdriver in current thread 12: ChromeDriver -> ChromeDriver: chrome on LINUX (3c69d379520b778d775f0e2d13f12d8d)
10:20:26.825 INFO com.xxx.friendly_iframes.script_outside.StickyIframeTest -> Running tests on environment chrome
Aug 14, 2017 10:20:26 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer closeUnusedWebdrivers
INFO: Thread 12 is dead. Let's close webdriver ChromeDriver: chrome on LINUX (null)
Aug 14, 2017 10:20:26 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer closeWebDriver
INFO: Close webdriver: 12 -> ChromeDriver: chrome on LINUX (null)
Aug 14, 2017 10:20:26 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer$CloseBrowser run
INFO: Trying to close the browser ChromeDriver ...
Вот как это выглядит при запуске в Firefox:
Aug 14, 2017 10:24:03 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer getWebDriver
INFO: No webdriver is bound to current thread: 12 - let's create new webdriver
Aug 14, 2017 10:24:03 AM com.codeborne.selenide.webdriver.WebDriverFactory createFirefoxDriver
INFO: Firefox 48+ is currently not supported by Selenium Firefox driver. Use browser=marionette with geckodriver, when using it.
1502699044184 addons.manager DEBUG Application has been upgraded
1502699044199 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1502699044202 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1502699044206 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/GMPProvider.jsm
1502699044208 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/PluginProvider.jsm
1502699044209 addons.manager DEBUG Starting provider: XPIProvider
1502699044209 addons.xpi DEBUG startup
1502699044209 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: /tmp/anonymous364482870505946158webdriver-profile/extensions/webdriver-staging
1502699044210 addons.xpi INFO Mapping fxdriver@googlecode.com to /tmp/anonymous364482870505946158webdriver-profile/extensions/fxdriver@googlecode.com
1502699044210 addons.xpi INFO Removing all system add-on upgrades.
1502699044210 addons.xpi INFO SystemAddonInstallLocation directory is missing
1502699044211 addons.xpi INFO Mapping webcompat@mozilla.org to /usr/lib/firefox/browser/features/webcompat@mozilla.org.xpi
1502699044212 addons.xpi INFO Mapping screenshots@mozilla.org to /usr/lib/firefox/browser/features/screenshots@mozilla.org.xpi
1502699044212 addons.xpi INFO Mapping e10srollout@mozilla.org to /usr/lib/firefox/browser/features/e10srollout@mozilla.org.xpi
1502699044212 addons.xpi INFO Mapping firefox@getpocket.com to /usr/lib/firefox/browser/features/firefox@getpocket.com.xpi
1502699044212 addons.xpi INFO Mapping aushelper@mozilla.org to /usr/lib/firefox/browser/features/aushelper@mozilla.org.xpi
1502699044213 addons.xpi INFO Mapping langpack-en-ZA@firefox.mozilla.org to /usr/lib/firefox/browser/extensions/langpack-en-ZA@firefox.mozilla.org.xpi
1502699044213 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /usr/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
1502699044214 addons.xpi INFO Mapping langpack-en-GB@firefox.mozilla.org to /usr/lib/firefox/browser/extensions/langpack-en-GB@firefox.mozilla.org.xpi
1502699044214 addons.xpi INFO Mapping ubufox@ubuntu.com to /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ubufox@ubuntu.com.xpi
1502699044215 addons.xpi DEBUG checkForChanges
1502699044215 addons.xpi INFO SystemAddonInstallLocation directory is missing
1502699044216 addons.xpi DEBUG Loaded add-on state from prefs: {}
1502699044217 addons.xpi DEBUG New add-on fxdriver@googlecode.com in app-profile
1502699044217 addons.xpi DEBUG getModTime: Recursive scan of fxdriver@googlecode.com
1502699044219 addons.xpi DEBUG New add-on webcompat@mozilla.org in app-system-defaults
1502699044220 addons.xpi DEBUG getModTime: Recursive scan of webcompat@mozilla.org
1502699044221 addons.xpi DEBUG New add-on screenshots@mozilla.org in app-system-defaults
1502699044221 addons.xpi DEBUG getModTime: Recursive scan of screenshots@mozilla.org
1502699044221 addons.xpi DEBUG New add-on e10srollout@mozilla.org in app-system-defaults
1502699044221 addons.xpi DEBUG getModTime: Recursive scan of e10srollout@mozilla.org
1502699044222 addons.xpi DEBUG New add-on firefox@getpocket.com in app-system-defaults
1502699044222 addons.xpi DEBUG getModTime: Recursive scan of firefox@getpocket.com
1502699044222 addons.xpi DEBUG New add-on aushelper@mozilla.org in app-system-defaults
1502699044223 addons.xpi DEBUG getModTime: Recursive scan of aushelper@mozilla.org
1502699044223 addons.xpi DEBUG New add-on langpack-en-ZA@firefox.mozilla.org in app-global
1502699044223 addons.xpi DEBUG getModTime: Recursive scan of langpack-en-ZA@firefox.mozilla.org
1502699044224 addons.xpi DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1502699044224 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1502699044225 addons.xpi DEBUG New add-on langpack-en-GB@firefox.mozilla.org in app-global
1502699044225 addons.xpi DEBUG getModTime: Recursive scan of langpack-en-GB@firefox.mozilla.org
1502699044225 addons.xpi DEBUG New add-on ubufox@ubuntu.com in app-system-share
1502699044225 addons.xpi DEBUG getModTime: Recursive scan of ubufox@ubuntu.com
1502699044225 addons.xpi DEBUG getInstallState changed: true, state: {"app-profile":{"fxdriver@googlecode.com":{"d":"/tmp/anonymous364482870505946158webdriver-profile/extensions/fxdriver@googlecode.com","st":1502699043000,"mt":1502699043000}},"app-system-defaults":{"webcompat@mozilla.org":{"d":"/usr/lib/firefox/browser/features/webcompat@mozilla.org.xpi","st":1497273884000},"screenshots@mozilla.org":{"d":"/usr/lib/firefox/browser/features/screenshots@mozilla.org.xpi","st":1497273884000},"e10srollout@mozilla.org":{"d":"/usr/lib/firefox/browser/features/e10srollout@mozilla.org.xpi","st":1497273883000},"firefox@getpocket.com":{"d":"/usr/lib/firefox/browser/features/firefox@getpocket.com.xpi","st":1497273884000},"aushelper@mozilla.org":{"d":"/usr/lib/firefox/browser/features/aushelper@mozilla.org.xpi","st":1497273883000}},"app-global":{"langpack-en-ZA@firefox.mozilla.org":{"d":"/usr/lib/firefox/browser/extensions/langpack-en-ZA@firefox.mozilla.org.xpi","st":1497274142000},"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/usr/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","st":1497273883000},"langpack-en-GB@firefox.mozilla.org":{"d":"/usr/lib/firefox/browser/extensions/langpack-en-GB@firefox.mozilla.org.xpi","st":1497274142000}},"app-system-share":{"ubufox@ubuntu.com":{"d":"/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ubufox@ubuntu.com.xpi","st":1442597402000}}}
1502699044235 addons.xpi-utils DEBUG Opening XPI database /tmp/anonymous364482870505946158webdriver-profile/extensions.json
1502699044237 addons.xpi-utils DEBUG New add-on fxdriver@googlecode.com installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1502699044255 DeferredSave.extensions.json DEBUG Save changes
1502699044255 addons.xpi-utils DEBUG New add-on webcompat@mozilla.org installed in app-system-defaults
1502699044258 DeferredSave.extensions.json DEBUG Starting timer
1502699044261 DeferredSave.extensions.json DEBUG Save changes
1502699044261 addons.xpi-utils DEBUG New add-on screenshots@mozilla.org installed in app-system-defaults
1502699044268 DeferredSave.extensions.json DEBUG Save changes
1502699044269 addons.xpi-utils DEBUG New add-on e10srollout@mozilla.org installed in app-system-defaults
1502699044272 DeferredSave.extensions.json DEBUG Save changes
1502699044273 addons.xpi-utils DEBUG New add-on firefox@getpocket.com installed in app-system-defaults
1502699044277 DeferredSave.extensions.json DEBUG Save changes
1502699044277 addons.xpi-utils DEBUG New add-on aushelper@mozilla.org installed in app-system-defaults
1502699044282 DeferredSave.extensions.json DEBUG Save changes
1502699044282 addons.xpi-utils DEBUG New add-on langpack-en-ZA@firefox.mozilla.org installed in app-global
1502699044290 DeferredSave.extensions.json DEBUG Starting write
1502699044293 DeferredSave.extensions.json DEBUG Save changes
1502699044293 DeferredSave.extensions.json DEBUG Data changed while write in progress
1502699044294 addons.xpi-utils DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
1502699044296 DeferredSave.extensions.json DEBUG Save changes
1502699044297 addons.xpi-utils DEBUG New add-on langpack-en-GB@firefox.mozilla.org installed in app-global
1502699044306 DeferredSave.extensions.json DEBUG Save changes
1502699044306 addons.xpi-utils DEBUG New add-on ubufox@ubuntu.com installed in app-system-share
1502699044316 addons.xpi-utils WARN Disabling foreign installed add-on ubufox@ubuntu.com in app-system-share
1502699044317 DeferredSave.extensions.json DEBUG Save changes
1502699044318 addons.manager DEBUG Registering startup change 'installed' for fxdriver@googlecode.com
1502699044318 addons.xpi-utils DEBUG Make addon app-profile:fxdriver@googlecode.com visible
1502699044321 addons.xpi DEBUG Add-on fxdriver@googlecode.com blocks e10s rollout.
1502699044322 DeferredSave.extensions.json DEBUG Save changes
1502699044322 addons.manager DEBUG Registering startup change 'installed' for webcompat@mozilla.org
1502699044330 addons.xpi DEBUG Loading bootstrap scope from /usr/lib/firefox/browser/features/webcompat@mozilla.org.xpi
1502699044334 addons.xpi DEBUG Calling bootstrap method install on webcompat@mozilla.org version 1.1
1502699044334 addons.xpi-utils DEBUG Make addon app-system-defaults:webcompat@mozilla.org visible
1502699044334 addons.xpi DEBUG Add-on fxdriver@googlecode.com blocks e10s rollout.
1502699044334 DeferredSave.extensions.json DEBUG Save changes
1502699044334 addons.manager DEBUG Registering startup change 'installed' for screenshots@mozilla.org
1502699044335 addons.xpi DEBUG Loading bootstrap scope from /usr/lib/firefox/browser/features/screenshots@mozilla.org.xpi
1502699044336 addons.xpi DEBUG Calling bootstrap method install on screenshots@mozilla.org version 6.6.0
1502699044336 addons.xpi-utils DEBUG Make addon app-system-defaults:screenshots@mozilla.org visible
1502699044337 addons.xpi DEBUG Add-on fxdriver@googlecode.com blocks e10s rollout.
1502699044337 DeferredSave.extensions.json DEBUG Save changes
1502699044337 addons.manager DEBUG Registering startup change 'installed' for e10srollout@mozilla.org
1502699044338 addons.xpi DEBUG Loading bootstrap scope from /usr/lib/firefox/browser/features/e10srollout@mozilla.org.xpi
1502699044340 addons.xpi DEBUG Calling bootstrap method install on e10srollout@mozilla.org version 1.50
1502699044340 addons.xpi DEBUG Add-on fxdriver@googlecode.com blocks e10s rollout.
1502699044340 addons.xpi DEBUG Add-on fxdriver@googlecode.com blocks e10s rollout.
1502699044341 addons.xpi-utils DEBUG Make addon app-system-defaults:e10srollout@mozilla.org visible
1502699044341 addons.xpi DEBUG Add-on fxdriver@googlecode.com blocks e10s rollout.
1502699044341 DeferredSave.extensions.json DEBUG Save changes
1502699044341 addons.manager DEBUG Registering startup change 'installed' for firefox@getpocket.com
1502699044342 addons.xpi DEBUG Loading bootstrap scope from /usr/lib/firefox/browser/features/firefox@getpocket.com.xpi
1502699044345 addons.xpi DEBUG Calling bootstrap method install on firefox@getpocket.com version 1.0.5
1502699044345 addons.xpi-utils DEBUG Make addon app-system-defaults:firefox@getpocket.com visible
1502699044345 addons.xpi DEBUG Add-on fxdriver@googlecode.com blocks e10s rollout.
1502699044345 DeferredSave.extensions.json DEBUG Save changes
1502699044346 addons.manager DEBUG Registering startup change 'installed' for aushelper@mozilla.org
1502699044347 addons.xpi DEBUG Loading bootstrap scope from /usr/lib/firefox/browser/features/aushelper@mozilla.org.xpi
1502699044350 addons.xpi DEBUG Calling bootstrap method install on aushelper@mozilla.org version 2.0
1502699044350 addons.xpi-utils DEBUG Make addon app-system-defaults:aushelper@mozilla.org visible
1502699044350 addons.xpi DEBUG Add-on fxdriver@googlecode.com blocks e10s rollout.
1502699044350 DeferredSave.extensions.json DEBUG Save changes
1502699044351 addons.manager DEBUG Registering startup change 'installed' for langpack-en-ZA@firefox.mozilla.org
1502699044351 addons.manager DEBUG Registering startup change 'installed' for langpack-en-ZA@firefox.mozilla.org
1502699044351 addons.xpi-utils DEBUG Make addon app-global:langpack-en-ZA@firefox.mozilla.org visible
1502699044352 addons.xpi DEBUG Add-on fxdriver@googlecode.com blocks e10s rollout.
1502699044352 DeferredSave.extensions.json DEBUG Save changes
1502699044352 addons.xpi-utils DEBUG Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1502699044352 addons.xpi DEBUG Add-on fxdriver@googlecode.com blocks e10s rollout.
1502699044352 DeferredSave.extensions.json DEBUG Save changes
1502699044352 addons.manager DEBUG Registering startup change 'installed' for langpack-en-GB@firefox.mozilla.org
1502699044352 addons.manager DEBUG Registering startup change 'installed' for langpack-en-GB@firefox.mozilla.org
1502699044353 addons.xpi-utils DEBUG Make addon app-global:langpack-en-GB@firefox.mozilla.org visible
1502699044353 addons.xpi DEBUG Add-on fxdriver@googlecode.com blocks e10s rollout.
1502699044353 DeferredSave.extensions.json DEBUG Save changes
1502699044354 addons.manager DEBUG Registering startup change 'installed' for ubufox@ubuntu.com
1502699044354 addons.xpi-utils DEBUG Make addon app-system-share:ubufox@ubuntu.com visible
1502699044354 addons.xpi DEBUG Add-on fxdriver@googlecode.com blocks e10s rollout.