Skip to content

fix: Allow config change on PlaywrightCrawler #1186

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mylank
Copy link
Contributor

@mylank mylank commented May 3, 2025

Description

It is not possible to apply Configuration to the Playwright crawler (see issue). This is a proposal for a solution.

Issues

Testing

Added a test that failed before the fix, but works now.

Checklist

  • CI passed

@mylank mylank changed the title fix: allow config change on playwrightcrawler fix: Allow config change on PlaywrightCrawler May 3, 2025
Copy link
Collaborator

@janbuchar janbuchar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thank you!



async def test_overwrite_configuration() -> None:
"""Check that the configuration is allowed to be passed to the Playwrightcrawler."""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please mention that the test only checks that the PlaywrightCrawler instantiation does not raise an error.

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.

Can't configure Playwright crawler with Configuration
2 participants