-
-
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]: When starting chromedriver with add_argument(f"--load-extension={extension_load}") - BIDI connection make Page.* commands unavailable #13759
Comments
@HermesNWO, 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! |
Was this working before, or are you trying this for the first time? I believe our BiDi support in Python needs work. @AutomatedTester do you know if this should be working? |
I have also tried with Selenium 4.16.0 and Chromedriver 122 and then updated to see if any chance of work but nothing... |
Actually with my different tries, it happen only with this extension : https://chromewebstore.google.com/detail/i-still-dont-care-about-c/edibdbjcniadpccecjdfdjjppcpchdlm, for the others it works. |
It seems to be an issue with the extension, as mentioned in the extension reviews. I will close this as the root cause is outside Selenium. |
No this is a real issue, for example it also stop working with this extensions : https://chromewebstore.google.com/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi |
Okay I have found the solution : after reading cdps logs, we can see that the initial BiDi session is using the first target found in the list to make a general session. Indeed we don't want to attach to the first but the last element of the list : Modify async def bidi_connection(self): in webdriver.py and use -1 instead of 0 |
This issue is looking for contributors. Please comment below or reach out to us through our IRC/Slack/Matrix channels if you are interested. |
@HermesNWO Hi, can the issue still be reproduced, if so can you share the whole code snippet? I believe I am still missing something so I can't reproduce. |
What happened?
When starting chromedriver with the load-extension argument, BiDi connection won't makes the Page.* commands available/working.
Below easy step to reproduce
How can we reproduce the issue?
Relevant log output
Operating System
Linux
Selenium version
4.19.0
What are the browser(s) and version(s) where you see this issue?
Chromedriver 123 - 122
What are the browser driver(s) and version(s) where you see this issue?
Chromedriver 123 - 122
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: