feat: enable the chrome-remote-interface#416
Draft
EmpiresHQ wants to merge 8 commits intoapify:masterfrom
Draft
Conversation
barjin
reviewed
Jun 20, 2025
Member
barjin
left a comment
There was a problem hiding this comment.
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:
Contributor
Author
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello!
This one is related to #415, it has slight differences from
puppeteerimplementation, especially in thePage.addScriptToEvaluateOnNewDocumentwhere 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