-
Notifications
You must be signed in to change notification settings - Fork 311
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
When open a new tab, some network events are skipped. #319
Comments
I think this is a timing problem: when the popup window opens and the The solution would be to pause the target on start: Target.setAutoAttach({
autoAttach: true,
waitForDebuggerOnStart: true
}); Then setup events and finally resume with But unfortunately this doesn't work, even the auto-attach feature itself doesn't seem to work. And even when the target used to perform these operations is the DevTools target ( The documentation says:
Maybe a popup window is not considered to be related to its opener in this context. |
Thanks for the help. |
Oh, good to know, thanks for the link. |
@cyrus-and I wrote an email to one of the developers and he replied that this task is not even worth a priority. |
A year+ later, and it's still impossible to attach to new targets upon creation. Anyone who knows a workaround? |
Relevant Chrome issue: https://bugs.chromium.org/p/chromium/issues/detail?id=1070568 |
When I click on a page http://getresto.gifts48.ru/1/
A window opens with the following redirect chain:
http://getresto.gifts48.ru/1/popup1.php
http://getresto.gifts48.ru/1/popup2.php
http://getresto.gifts48.ru/1/popup3.php
http://getresto.gifts48.ru/1/popup4.php
http://getresto.gifts48.ru/1/popup5.html
http://getresto.gifts48.ru/1/popup6.html
http://getresto.gifts48.ru/1/popup7.html
http://getresto.gifts48.ru/1/popup8.html
I'm trying to collect this chain with this code
But the first three pages are missing.
How can I fix this?
The text was updated successfully, but these errors were encountered: