-
Notifications
You must be signed in to change notification settings - Fork 114
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
Config for evaluateOnNewDocument? #268
Comments
hey @rasmus0201, that sounds like a useful feature. I'd welcome a PR for it 😄 |
would be a case of following a similar pattern (and location) of these: https://github.com/Studiosity/grover/blob/main/lib/grover/js/processor.cjs#L107-L185 Then add a test to ensure we don't get regressions, likely in https://github.com/Studiosity/grover/blob/main/spec/grover/processor_spec.rb Likely something like:
i.e the only way this would pass is if that evaluate code had run before the page rendered. It wouldn't work with |
Thank you - I will try and make a PR 😊 |
Hi. I'm trying to add a script to the page before the script execution starts (to set some env configs for the in-page JS)
This seems to be doable with
page.evaluateOnNewDocument()
in Puppeteer - https://pptr.dev/api/puppeteer.page.evaluateonnewdocumentIs this something you could be interested adding to Grover?
The text was updated successfully, but these errors were encountered: