Skip to content

Can I use launch_persistent_context in scrapy-playwright with headless=False? #178

@fhlemos

Description

@fhlemos

Is it possible to use persistent context with headless browser false?

I'm using this setup, but the browser does not run.

PLAYWRIGHT_LAUNCH_OPTIONS = {
    "headless": False,
    "devtools": False,
    "args": [
        "--disable-extensions-except=/home/user/metamask-chrome/metamask",
        "--load-extension=/home/user/metamask-chrome/metamask"
    ]
}

PLAYWRIGHT_CONTEXTS = {"persistent": {"user_data_dir": str(Path.home() / "playwright-persistent-context")}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationhelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions