SeleniumHQ / seleniumhq.github.io

Official Selenium website and documentation
https://selenium.dev
Apache License 2.0
1.07k stars 1.27k forks source link

[🐛 Bug]: JavaScript issue with Selenium web site (https://www.selenium.dev), throwing JavaScript type error #1737

Closed sbabcoc closed 3 months ago

sbabcoc commented 3 months ago

What happened?

I'm using HtmlUnitDriver for testing, and the JavaScript engine used by HtmlUnit is throwing a TypeError loading the pages from the Selenium web site (https://www.selenium.dev). The error is:

TypeError: redeclaration of const n. (https://www.selenium.dev/js/main.min.0a56205ed1c75268f017591e5418fdb944578a279fe7c7abe3981ebed191c341.js#5)

I can work around this issue by disabling the resulting exception in HtmlUnitDriver, but it would be good to clean this up.

What browsers and operating systems are you seeing the problem on?

HtmlUnitDriver loading https://www.selenium.dev

github-actions[bot] commented 3 months ago

@sbabcoc, 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.

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

Thank you!

diemol commented 3 months ago

I do not see that error when using the browser, how can I reproduce it manually?

sbabcoc commented 3 months ago

Hmmm... Looking closer, this seems more likely to be a Rhino issue. I'll close this Selenium issue and open a new one for Rhino.