Skip to content

How to add proxy in stealthy playwrite mode #4281

@dx-bear

Description

@dx-bear

Hello

I have a hard time trying to add proxy in this example

driver = await cdp_driver.start_async()
endpoint_url = driver.get_endpoint_url()

async with async_playwright() as p:
    browser = await p.chromium.connect_over_cdp(endpoint_url)
    context = browser.contexts[0]
    page = context.pages[0]
    response: Response| None = await page.goto(url=url)
    cookies = await context.cookies()

there is no clear documentation on how to do so.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions