Я использую Chrome Version 80.0.3987.87 (Official Build) (64-bit)
, и у меня начались проблемы с запуском тестов. Вот журнал из сборки Gradle в IntelliJ (я обрезал повторяющиеся сообщения):
Feb 07, 2020 5:35:00 PM com.codeborne.selenide.drivercommands.LazyDriver getAndCheckWebDriver
INFO: No webdriver is bound to current thread: 16 - let's create a new webdriver
[Test worker] INFO io.github.bonigarcia.wdm.WebDriverManager - Using chromedriver 80.0.3987.16 (since Google Chrome 80 is installed in your machine)
[Test worker] INFO io.github.bonigarcia.wdm.WebDriverManager - Exporting webdriver.chrome.driver as /Users/MY_USERNAME/.m2/repository/webdriver/chromedriver/mac64/80.0.3987.16/chromedriver
Starting ChromeDriver 80.0.3987.16 (320f6526c1632ad4f205ebce69b99a062ed78647-refs/branch-heads/3987@{#185}) on port 40161
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
Feb 07, 2020 5:35:02 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
Feb 07, 2020 5:35:02 PM com.codeborne.selenide.webdriver.WebDriverFactory logBrowserVersion
INFO: BrowserName=chrome Version=80.0.3987.87 Platform=MAC
Feb 07, 2020 5:35:02 PM com.codeborne.selenide.webdriver.WebDriverFactory createWebDriver
INFO: Selenide v. 5.3.1
Feb 07, 2020 5:35:02 PM com.codeborne.selenide.webdriver.WebDriverFactory logSeleniumInfo
INFO: Selenium WebDriver v. 3.141.59 build time: 2018-11-14T08:17:03
Feb 07, 2020 5:35:02 PM com.codeborne.selenide.drivercommands.CreateDriverCommand createDriver
INFO: Create webdriver in current thread 16: ChromeDriver -> ChromeDriver: chrome on MAC (70825a925f9d8ff1feaab3af1616c757)
[1581093303.600][SEVERE]: Timed out receiving message from renderer: 0.100
[1581093304.523][SEVERE]: Timed out receiving message from renderer: 0.100
(...)
[1581093454.504][SEVERE]: Timed out receiving message from renderer: 0.100
[1581093454.741][SEVERE]: Timed out receiving message from renderer: 0.100
Feb 07, 2020 5:38:23 PM com.codeborne.selenide.impl.Describe appendAttributes
WARNING: Failed to get attributes via JS: org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:40161
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'MY_HOSTNAME', ip: 'fe80:0:0:0:49c:e20c:a777:8e08%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.3', java.version: '11.0.4'
Driver info: driver.version: RemoteWebDriver
Feb 07, 2020 5:38:23 PM com.codeborne.selenide.impl.Describe attr
WARNING: Failed to get attribute class: org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:40161
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'MY_HOSTNAME', ip: 'fe80:0:0:0:49c:e20c:a777:8e08%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.3', java.version: '11.0.4'
Driver info: driver.version: RemoteWebDriver
(...)
Feb 07, 2020 5:38:23 PM com.codeborne.selenide.impl.Describe attr
WARNING: Failed to get attribute value: org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:40161
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'MY_HOSTNAME', ip: 'fe80:0:0:0:49c:e20c:a777:8e08%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.3', java.version: '11.0.4'
Driver info: driver.version: RemoteWebDriver
[Test worker] WARN io.qameta.allure.selenide.AllureSelenide - Could not get screen shot
org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:40161
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'MY_HOSTNAME', ip: 'fe80:0:0:0:49c:e20c:a777:8e08%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.3', java.version: '11.0.4'
Driver info: driver.version: SelenideDriver
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:92)
(...)
Caused by: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:40161
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:247)
(...)
... 92 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
(...)
... 112 more
Я попытался обновить Selenide до последней версии (5.6.1) - не помогло, такая же проблема возникает. Самое непонятное, что это происходит не каждый раз - иногда это работает через весь набор тестов, иногда перерывы после одного теста, а иногда в середине.
Как я могу диагностировать, что может быть не так?