-
-
Notifications
You must be signed in to change notification settings - Fork 268
docs: fix inconsistencies in snippets #192
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
base: main
Are you sure you want to change the base?
Conversation
- fix autoscrape-labs#191 - intercepting requests is a browser feature and this pr fixes cases where tab was used instead of browser for enabling fetch events and callbacks
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
For changes, please see L174 in docs/deep-dive/event-system.md and around L888 in docs/features.md. The remaining is noise produced by my markdown settings. |
No problem, that looks great! Thank you. |
await tab.enable_request_interception() | ||
await tab.on('Fetch.requestPaused', block_unwanted_requests) | ||
|
||
await browser.enable_fetch_events() | ||
await browser.on('Fetch.requestPaused', block_unwanted_requests) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, i fixed this bug, it will be in the next release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh nice. enabling fetch events for a tab?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, exactly. You can keep as it is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that'll be wonderful. thanks.
find_all=True
#191fixes cases where tab was used instead of browser for enabling fetch
events and callbacks
Pull Request
Description
Related Issue(s)
Type of Change
How Has This Been Tested?
# Include code examples if relevant
Testing Checklist
Screenshots
Implementation Details
API Changes
Additional Info
Checklist before requesting a review
poetry run task lint
and fixed any issuespoetry run task test
and all tests pass