Closed HermesNWO closed 6 months ago
@HermesNWO, thank you for creating this issue. We will troubleshoot it as soon as we can.
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!
Was this working before, or are you trying this for the first time? I believe our BiDi and CDP support in Python need 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... And this is the first time I implement BIDI for Target.* related, and it doesn't work...
Okay I have found the answer.
Sended commands are destroyed once the attached session does.
So you have to keep a opened flattened session reference in a external Thread to keep your commands data.
This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs.
What happened?
I try to hook TargetCreated event and deploy some commands on the target once it start.
I have struggled to understand the CDPs session protocol and it seems like there's a internal bug that need to be solved...
On the initial BIDI session the page.add_script_to_evaluate_on_new_document work as expected.
When doing page.add_script_to_evaluate_on_new_document on a new session it doesn't work while an other command like page.navigate are working...
Keep in mind I have modified the BIDI source code so we can specify a target session id when creating new BIDI session.
See also overflow : https://stackoverflow.com/questions/78240333/chrome-selenium-cdp-bidi-api-next-commands-sended-to-target-session-have-no-ef
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
What are the browser driver(s) and version(s) where you see this issue?
Chromedriver 123 - 122
Are you using Selenium Grid?
No response