!zyIwMfkvlwblbZsUty:matrix.org

selenium

1572 Members
4 Servers

Load older messages


SenderMessageTime
26 May 2023
@_slack_seleniumhq_UMYAMQK2A:matrix.orgglenn.barker Hi all, I'm intermittently getting a ConnectionResetError (10054 / "An existing connection was forcibly closed by the remote host") in the middle of my test when running in a CI environment. The app under test is locally-hosted so I don't think it's actually dropping connection, plus screenshots & logging indicate that the app is still functional. Also it's intermittent and only happens in the middle of a test, so not a driver version mismatch either. Once I get the initial ConnectionResetError, then the run is busted until the app and the webdriver instance are totally killed and reset, any other attempts to use any Selenium api results in a NewConnectionError being thrown. It happens when I do pretty innocuous things within the standard Selenium lib, like simply trying to query driver.window_handles , and the stacktrace indicates that the issue is originating deep within Selenium and urllib3, so I don't think it's my own test code causing this. Any ideas on what could be happening and how to mitigate? Current theory is that maybe the app under test is pegging the CPU or local network connection which causes Selenium to drop the connection but idk if that's actually what's happening or how best to verify that. Here's an example stacktrace:
Traceback (most recent call last):
  File "C:\Users\runneradmin\.virtualenvs\e2e-testing-gceyZJmk\lib\site-packages\urllib3\connection.py", line 160, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "C:\Users\runneradmin\.virtualenvs\e2e-testing-gceyZJmk\lib\site-packages\urllib3\util\connection.py", line 84, in create_connection
    raise err
  File "C:\Users\runneradmin\.virtualenvs\e2e-testing-gceyZJmk\lib\site-packages\urllib3\util\connection.py", line 74, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\runneradmin\.virtualenvs\e2e-testing-gceyZJmk\lib\site-packages\urllib3\connectionpool.py", line 677, in urlopen
    chunked=chunked,
  File "C:\Users\runneradmin\.virtualenvs\e2e-testing-gceyZJmk\lib\site-packages\urllib3\connectionpool.py", line 392, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\http\client.py", line 1277, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\http\client.py", line 1323, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\http\client.py", line 1272, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\http\client.py", line 1032, in _send_output
    self.send(msg)
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\http\client.py", line 972, in send
    self.connect()
  File "C:\Users\runneradmin\.virtualenvs\e2e-testing-gceyZJmk\lib\site-packages\urllib3\connection.py", line 187, in connect
    conn = self._new_conn()
  File "C:\Users\runneradmin\.virtualenvs\e2e-testing-gceyZJmk\lib\site-packages\urllib3\connection.py", line 172, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError:  urllib3.connection.HTTPConnection object at 0x000001664ED19A48 : Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it
14:50:40
@_slack_seleniumhq_UE359802W:matrix.org@_slack_seleniumhq_UE359802W:matrix.org left the room.16:08:54
@_slack_seleniumhq_U053T5NS8LU:matrix.org@_slack_seleniumhq_U053T5NS8LU:matrix.org left the room.16:08:54
@AnastasiyaKazeev:libera.chat@AnastasiyaKazeev:libera.chat left the room.16:08:56
@_slack_seleniumhq_U055DJH2U9F:matrix.org@_slack_seleniumhq_U055DJH2U9F:matrix.org left the room.16:08:56
@_slack_seleniumhq_U055P6EN6HM:matrix.orgMitch Andrews changed their display name from _slack_seleniumhq_U055P6EN6HM to Mitch Andrews.19:46:42
@_slack_seleniumhq_U055P6EN6HM:matrix.orgMitch Andrews set a profile picture.19:46:44
@_slack_seleniumhq_U055P6EN6HM:matrix.orgMitch Andrews Hi all, I'm running a distributed grid on Amazon EKS and I'm trying to be able to dynamically register macOS nodes external to the k8s cluster. However, since we're using the ALB ingress controller I can only route at layer 7. The event bus wants pub/sub requests sent at layer 4. Anyone have any ideas on a workaround here? 19:46:44
27 May 2023
@badeball_:libera.chatbadeball_ joined the room.01:35:59
@_slack_seleniumhq_U05A556DRH7:matrix.org_slack_seleniumhq_U05A556DRH7 joined the room.02:52:51
@luffy:internet-portal.cz@luffy:internet-portal.cz left the room.09:00:15
@tenko:internet-portal.cz@tenko:internet-portal.cz left the room.09:00:15
@sythemeta847:matrix.org@sythemeta847:matrix.org left the room.09:00:34
@valdez:libera.chat@valdez:libera.chat joined the room.09:39:55
@valdez:libera.chat@valdez:libera.chat left the room.09:40:23
@AK82:libera.chat@AK82:libera.chat joined the room.10:54:30
@AK82:libera.chat@AK82:libera.chat Hi, I have recently started learning selenium and I'm getting a boot layer error in my first code. I'm currently using Selenium version 4.9.1, jdk 17 and Eclipse 2022-23. When I'm trying to create an instance of Chrome driver I'm getting the following error: 11:00:00
@AK82:libera.chat@AK82:libera.chatModule com.google.common not found, required by org.seleniumhq.selenium.chrome_driver11:00:00
@AK82:libera.chat@AK82:libera.chatPlease help!11:00:01
@AK82:libera.chat@AK82:libera.chat left the room.11:01:53
@selenium_help_11:libera.chat@selenium_help_11:libera.chat joined the room.11:02:23
@selenium_help_11:libera.chat@selenium_help_11:libera.chat Hi, I have recently started learning selenium and I'm getting a boot layer error in my first code. I'm currently using Selenium version 4.9.1, jdk 17 and Eclipse 2022-23. When I'm trying to create an instance of Chrome driver I'm getting the following error: 11:03:55
@selenium_help_11:libera.chat@selenium_help_11:libera.chat left the room.12:27:48
@_slack_seleniumhq_U059CLMD68P:matrix.org_slack_seleniumhq_U059CLMD68P joined the room.13:26:59
@_slack_seleniumhq_U054Z41MECS:matrix.org@_slack_seleniumhq_U054Z41MECS:matrix.org left the room.16:08:57
@_slack_seleniumhq_U055X9GV1HN:matrix.org@_slack_seleniumhq_U055X9GV1HN:matrix.org left the room.16:08:57
@_slack_seleniumhq_U055YD50QDN:matrix.org@_slack_seleniumhq_U055YD50QDN:matrix.org left the room.16:08:58
@pah:libera.chatpah joined the room.18:23:48
@_slack_seleniumhq_U017FB2RH3J:matrix.orgTomáš Pařanoik Vymětal joined the room.22:31:13
@_slack_seleniumhq_U017FB2RH3J:matrix.orgTomáš Pařanoik Vymětal I'm getting intermittent "org.openqa.selenium.WebDriverException: unknown error: cannot determine loading status" when running in parallel against grid 4.9.1/chrome+driver 113 .. is anyone else experiencing this? 22:33:36

There are no newer messages yet.


Back to Room ListRoom Version: 6