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

Pass options to browser context #2383

Open
cybairfly opened this issue Mar 17, 2024 · 0 comments
Open

Pass options to browser context #2383

cybairfly opened this issue Mar 17, 2024 · 0 comments
Labels
feature Issues that represent new features or improvements to existing features.

Comments

@cybairfly
Copy link
Contributor

cybairfly commented Mar 17, 2024

Which package is the feature request for? If unsure which one to select, leave blank

@crawlee/playwright (PlaywrightCrawler)

Feature

Did not find any way to do this for all of these options - I need to pass options to browser context in a crawler:
https://playwright.dev/docs/api/class-browser#browser-new-context

Motivation

Enable passing any of the context options which are available in PW but not accessible from within a crawler/browserPool it seems.

Ideal solution or implementation, and any additional constraints

preContextCreateHooks?
Need to pass the options for the whole context (incognito) and not just every single page (storageState)

Alternative solutions or implementations

No response

Other context

No response

@cybairfly cybairfly added the feature Issues that represent new features or improvements to existing features. label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Issues that represent new features or improvements to existing features.
Projects
None yet
Development

No branches or pull requests

1 participant