Skip to content

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eyayaw
Copy link

@eyayaw eyayaw commented Jul 6, 2025

  • fix missing find_all=True #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

Pull Request

Description

Related Issue(s)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes, no API changes)
  • Performance improvement
  • Tests (adding missing tests or correcting existing tests)
  • Build or CI/CD related changes

How Has This Been Tested?

# Include code examples if relevant

Testing Checklist

  • Unit tests added/updated
  • Integration tests added/updated
  • All existing tests pass

Screenshots

Implementation Details

API Changes

Additional Info

Checklist before requesting a review

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have run poetry run task lint and fixed any issues
  • I have run poetry run task test and all tests pass
  • My commits follow the conventional commits style

- 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
Copy link

codecov bot commented Jul 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@eyayaw
Copy link
Author

eyayaw commented Jul 6, 2025

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.

@thalissonvs
Copy link
Member

No problem, that looks great! Thank you.

@thalissonvs thalissonvs marked this pull request as ready for review July 10, 2025 17:41
Comment on lines -900 to +901
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)
Copy link
Member

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

Copy link
Author

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?

Copy link
Member

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

Copy link
Author

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.

@thalissonvs thalissonvs marked this pull request as draft July 11, 2025 20:20
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

Successfully merging this pull request may close these issues.

missing find_all=True
2 participants