Skip to content
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

Listener for Fetch.requestPaused not working #2099

Open
oculunto opened this issue Dec 2, 2024 · 0 comments
Open

Listener for Fetch.requestPaused not working #2099

oculunto opened this issue Dec 2, 2024 · 0 comments

Comments

@oculunto
Copy link

oculunto commented Dec 2, 2024

Hello,
I have troubles making driver.add_cdp_listener work with Fetch.requestPaused.
I use
driver.execute_cdp_cmd('Fetch.enable', {'patterns':[{'urlPattern':'*'}]})
and then
browser.add_cdp_listener("Fetch.requestPaused", lambda data: on_request(data))
But it never goes to on_request

On the other hand, Network.requestWillBeSent works as expected.

Does anybody know how to make it work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant