-
Notifications
You must be signed in to change notification settings - Fork 150
feat: enable the chrome-remote-interface #416
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution!
The PR looks mostly fine to me. We'll likely need to format / lint the changes. I also have a few questions:
Have resolved most issues and added a tweak:
so that the script is executed immediately after the page loads. Otherwise it can be executed not in the first place, and other scripts in |
What's the timeline on this PR? Been a few months and no movement. |
Hello!
This one is related to #415, it has slight differences from
puppeteer
implementation, especially in thePage.addScriptToEvaluateOnNewDocument
where puppeteer uses a sophisticated logic to match if the script was already added to the frame (I did not quite get why they need that)Besides that the implementation is fairly straightforward, I have added the CDP runner to the existing test suite using puppeteer as a chrome launcher, have also added simplified methods to align with test scenarios.
So far tests are mostly passing for me (there are 3 randomly failing tests, but they fail for me on master too)
I did not bump package versions nor updated the README, so far it's just to check it out and decide if you want to merge it