Здравствуйте!
Запуск такого простого кода
public static void main(String[] args){
FirefoxDriver driver=new FirefoxDriver();
приводит к такой ошибке
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
UG Calling bootstrap method startup on followonsearch@mozilla.com version 0.9.1
1507017374844 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\screenshots@mozilla.org.xpi
1507017374845 addons.xpi DEBUG Calling bootstrap method startup on screenshots@mozilla.org version 10.12.0
1507017374845 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\shield-recipe-client@mozilla.org.xpi
1507017374846 addons.xpi DEBUG Calling bootstrap method startup on shield-recipe-client@mozilla.org version 55.1
1507017374860 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\webcompat@mozilla.org.xpi
1507017374861 addons.xpi DEBUG Calling bootstrap method startup on webcompat@mozilla.org version 1.1
1507017374882 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1507017374882 addons.manager DEBUG Provider finished startup: XPIProvider
1507017374882 addons.manager DEBUG Starting provider: LightweightThemeManager
1507017374882 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1507017374882 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1507017374883 addons.manager DEBUG Starting provider: GMPProvider
1507017374892 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1507017374893 addons.manager DEBUG Provider finished startup: GMPProvider
1507017374893 addons.manager DEBUG Starting provider: PluginProvider
1507017374893 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1507017374893 addons.manager DEBUG Provider finished startup: PluginProvider
1507017374894 addons.manager DEBUG Completed startup sequence
1507017378889 DeferredSave.extensions.json DEBUG Write succeeded
1507017378890 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 21
1507017378890 DeferredSave.extensions.json DEBUG Starting timer
1507017378915 DeferredSave.extensions.json DEBUG Starting write
1507017378961 addons.repository DEBUG No addons.json found.
1507017378962 DeferredSave.addons.json DEBUG Save changes
1507017378968 DeferredSave.addons.json DEBUG Starting timer
1507017379052 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1507017379052 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1507017379052 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
1507017379059 DeferredSave.addons.json DEBUG Starting write
1507017379074 DeferredSave.extensions.json DEBUG Write succeeded
1507017379084 DeferredSave.addons.json DEBUG Write succeeded
1507017385141 addons.manager DEBUG Starting provider:
1507017385142 addons.manager DEBUG Registering shutdown blocker for
1507017385144 addons.manager DEBUG Provider finished startup:
JavaScript error: resource:///modules/ExtensionsUI.jsm, line 50: TypeError: RecentWindow.getMostRecentBrowserWindow(…) is null
1507017385366 addons.productaddons INFO sending request to: https://aus5.mozilla.org/update/3/GMP/55.0.3/20170824053622/WINNT_x86-msvc-x64/uk/release/Windows_NT%206.1.1.0%20(x64)/default/default/update.xml
[Parent 6452] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w32-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[Child 7904] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w32-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
1507017388574 addons.productaddons INFO Completed downloading document
1507017389441 addons.productaddons INFO downloadXHR File download. status=200
1507017389448 addons.productaddons INFO Downloaded file will be saved to C:\Users\836D~1\AppData\Local\Temp\tmpaddon-e50591
1507017393242 addons.productaddons INFO downloadXHR File download. status=200
1507017393248 addons.productaddons INFO Downloaded file will be saved to C:\Users\836D~1\AppData\Local\Temp\tmpaddon-93260d
В Хроме почти такой же
public static void main(String[] args){
System.setProperty(“webdriver.chrome.driver”,“F:\selenium java\chromedriver\chromedriver.exe”);
ChromeDriver driver = new ChromeDriver();
приводит к
Exception in thread “main” java.lang.IllegalAccessError: tried to access method com.google.common.util.concurrent.SimpleTimeLimiter.(Ljava/util/concurrent/ExecutorService;)V from class org.openqa.selenium.net.UrlChecker
at org.openqa.selenium.net.UrlChecker.(UrlChecker.java:67)
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:175)
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:166)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:78)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:644)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:144)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:170)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:159)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:116)
Windows 7
JDK 8
IntelliJ IDEA 2017.2.5
Selenium 3.5
Chrome 61
FF 55
Из того что нагуглила, возможная причина - несоответствие версий, но данные версии вроде как норм должны работать вместе.
В чём может быть проблема?
Спасибо.