crawlee icon indicating copy to clipboard operation
crawlee copied to clipboard

Pass options to browser context

Open cybairfly opened this issue 11 months ago • 0 comments

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 avatar Mar 17 '24 08:03 cybairfly