-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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]: [py] javascript_error_handler fails with Firefox due to stackTrace
not present in the json object
#14735
Comments
@qiu-lijie, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
@qiu-lijie I wasn't able to reproduce this issue in both Chrome and Firefox in macOS, below are the logs that I got:
Can you confirm if you face this issue in Ubuntu only? |
@navin772 thanks for taking a look. Here is the
Noticed the very last entry If you try getting the same page again, you can check if the |
What happened?
Trying to use the new BiDi feature to get browser console logs/errors with Firefox. However, with certain types (not sure the exact cause of this) of js error, a
stackTrace
object is not present in the json passed in callback handler, resulting in aKeyError
and ws connection being closed, thus all subsequent logs/errors being lostAfter some preliminary analysis, it seems like this line is causing the issue. Monkey patching it to
stacktrace=json["stackTrace"] if "stackTrace" in json else {},
solved the issue for me, but I'm not sure what's causing these js errors with nostackTrace
and if this issue exist with other browsers etc.How can we reproduce the issue?
Relevant log output
Operating System
Ubuntu 24.04.1 (WSL and native)
Selenium version
Python 4.26.1
What are the browser(s) and version(s) where you see this issue?
Firefox 132.0.1 | 131.0.3
What are the browser driver(s) and version(s) where you see this issue?
geckodriver 0.35.0
Are you using Selenium Grid?
no
The text was updated successfully, but these errors were encountered: