-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[Feature] Intercept target creation #1101
Comments
You will be able to set up interception and initial scripts on the browser context. So all the popups and click navigations that open in new pages will share interception, initial scripts and emulation parameters. Will this work for you? |
The It's doesn't seem to be implemented yet. But what you are saying @pavelfeldman, is that it will be eventually? Or am I missing it in the API? |
Yes, it is on its way. |
We updated the API and moved/copied many methods to the New APIs will be included in the next 0.12 release. |
Is it possible to actually intercept the targets? For example, asynchronously run and await Node.js code, which would be running after a response is received, but before webpage scripts are ran. The Node.js code could modify cookies, storages etc. |
Following this issue from puppeteer, puppeteer/puppeteer#3667, I would like to know if there is a way in playwright to intercept the creation of a target.
The use case is, as in the mentioned issue, to instrument a page before its creation and evaluation (with e.g. request interception and script injection).
The text was updated successfully, but these errors were encountered: