Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛 Bug]: Selenium driver crashes unexpectedly against Windows 11 OS #14879

Open
bwomsm1 opened this issue Dec 9, 2024 · 7 comments
Open
Labels
I-defect I-issue-template Applied to issues not following the template, or missing information.

Comments

@bwomsm1
Copy link

bwomsm1 commented Dec 9, 2024

What happened?

Selenium driver unexpectedly raising the following error:

 23:12:08.212ERRORScreenActions: test failed clicking on element with ActionChains methodHTTPConnectionPool(host='localhost', port=54730): Max retries exceeded with url: /session/43042e8439010b0ad1b0e7d27817445c/actions (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001F8A18024B0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

How can we reproduce the issue?

`from selenium.webdriver.common.action_chains import ActionChains`
`ActionChains(self.driver_).click(element).perform()`

Assuming that `element` is a `WebElement`.

Relevant log output

23:12:08.212ERRORScreenActions: test failed clicking on element with ActionChains methodHTTPConnectionPool(host='localhost', port=54730): Max retries exceeded with url: /session/43042e8439010b0ad1b0e7d27817445c/actions (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001F8A18024B0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))


### Operating System

Windows OS 11

### Selenium version

selenium==4.25.0

### What are the browser(s) and version(s) where you see this issue?

Chrome 

### What are the browser driver(s) and version(s) where you see this issue?

latest chrome driver

### Are you using Selenium Grid?

No
Copy link

github-actions bot commented Dec 9, 2024

@bwomsm1, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@diemol diemol added I-issue-template Applied to issues not following the template, or missing information. and removed needs-triaging labels Dec 9, 2024
Copy link

github-actions bot commented Dec 9, 2024

Hi, @bwomsm1.
Please follow the issue template, we need more information to reproduce the issue.

Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.

Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.

Reply to this issue when all information is provided, thank you.

@bwomsm1
Copy link
Author

bwomsm1 commented Dec 11, 2024

Hi, @bwomsm1. Please follow the issue template, we need more information to reproduce the issue.

Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.

Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.

Reply to this issue when all information is provided, thank you.

Sorry, but I cannot share the code in GIT, what additional info you need?
Python version is Python 3.12.0
pip list:

$ pip list
Package                        Version
------------------------------ -----------
allure-pytest                  2.13.5
allure-python-commons          2.13.5
allure-robotframework          2.13.5
Appium-Python-Client           4.2.0
asgiref                        3.8.1
attrs                          23.2.0
AWSIoTPythonSDK                1.5.4
beautifulsoup4                 4.12.3
boto3                          1.35.39
botocore                       1.35.40
certifi                        2024.2.2
cffi                           1.16.0
charset-normalizer             3.3.2
click                          8.1.7
colorama                       0.4.6
configparser                   7.1.0
deepdiff                       8.0.1
deprecation                    2.1.0
Django                         5.0.4
et-xmlfile                     1.1.0
future                         1.0.0
h11                            0.14.0
hightime                       0.2.2
idna                           3.6
image                          1.5.33
imageio                        2.35.1
imutils                        0.5.4
iniconfig                      2.0.0
isodate                        0.6.1
Jinja2                         3.1.3
jmespath                       1.0.1
lazy_loader                    0.4
lxml                           5.2.1
MarkupSafe                     2.1.5
MouseInfo                      0.1.3
networkx                       3.3
nidaqmx                        1.0.1
numpy                          1.26.4
opencv-python                  4.10.0.82
opencv-python-headless         4.10.0.84
openpyxl                       3.1.2
orderly-set                    5.2.2
outcome                        1.3.0.post0
packaging                      24.0
pandas                         2.2.3
parsimonious                   0.10.0
pillow                         10.3.0
pip                            24.0
platformdirs                   4.2.0
pluggy                         1.5.0
psutil                         6.0.0
pure-python-adb                0.3.0.dev0
PyAutoGUI                      0.9.54
pycparser                      2.22
pyFirmata2                     2.5.0
PyGetWindow                    0.0.9
pylibdmtx                      0.1.10
PyMsgBox                       1.0.9
PyMuPDF                        1.24.10
PyMuPDFb                       1.24.10
pypdf                          5.0.1
pyperclip                      1.8.2
PyRect                         0.2.0
PyScreeze                      0.1.30
pyserial                       3.5
PySocks                        1.7.1
pytesseract                    0.3.13
pytest                         8.3.3
python-dateutil                2.9.0.post0
python-decouple                3.8
pytweening                     1.2.0
pytz                           2024.1
pyzbar                         0.1.9
regex                          2024.7.24
requests                       2.32.3
requests-file                  2.0.0
requests-toolbelt              1.0.0
robotbackgroundlogger          1.2
robotframework                 7.1
robotframework-doctestlibrary  0.22.0
robotframework-metrics         3.3.3
robotframework-pythonlibcore   4.4.1
robotframework-seleniumlibrary 6.6.1
s3transfer                     0.10.1
scapy                          2.6.0
scikit-image                   0.22.0
scipy                          1.14.1
selenium                       4.25.0
setuptools                     75.1.0
six                            1.16.0
sniffio                        1.3.1
sortedcontainers               2.4.0
soupsieve                      2.5
sqlparse                       0.4.4
tifffile                       2024.8.30
trio                           0.25.0
trio-websocket                 0.11.1
typing_extensions              4.11.0
tzdata                         2024.1
tzlocal                        5.2
urllib3                        2.2.1
Wand                           0.6.13
websocket-client               1.8.0
wsproto                        1.2.0
zeep                           4.3.0

Windows OS:

Screenshot 2024-12-11 at 11 50 17

@diemol
Copy link
Member

diemol commented Dec 11, 2024

We need a way to reproduce the issue. We need the code and a site you provide so we can triage.

Would you be able to diagnose what the issue is with the information you provided?

@bwomsm1
Copy link
Author

bwomsm1 commented Dec 11, 2024

We need a way to reproduce the issue. We need the code and a site you provide so we can triage.

Would you be able to diagnose what the issue is with the information you provided?

No, sorry,
I cannot share with you the website; its in our internal network,
I can say that I sporadically get the following error:

 23:12:08.212ERRORScreenActions: test failed clicking on element with ActionChains methodHTTPConnectionPool(host='localhost', port=54730): Max retries exceeded with url: /session/43042e8439010b0ad1b0e7d27817445c/actions (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001F8A18024B0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

Only against Windows OS 11.

@diemol
Copy link
Member

diemol commented Dec 11, 2024

It does not need to be on the same website. Any website or page that reproduces the error helps.

@bwomsm1
Copy link
Author

bwomsm1 commented Dec 11, 2024

It does not need to be on the same website. Any website or page that reproduces the error helps.

ok, thank you, I will work on reproducing it against some web page on web.

Another question please,
What is latest and greatest python version, Java version and needed capabilities that you advise using?

(for example, python 3.13? Java 17? etc')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-defect I-issue-template Applied to issues not following the template, or missing information.
Projects
None yet
Development

No branches or pull requests

2 participants