Skip to content

Loading an extension in cloud browser support #189

@ryanewood

Description

@ryanewood

Current Issue:
I'm looking to run playwright tests in the cloud with this service but with an extension installed. The current Playwright docs for loading extensions mention using the chromium.launchPersistentContext() method however this forces a browser instance to open and run on my local machine. Is there any way to get extensions loaded into the cloud browser with this service? I didn't see any documentation for implementing this.

Potential Solution:
Perhaps there is an undocumented parameter in connect method or a way to pass the extension path to the wsEndpoint (ex. wss://eastus.api.playwright.microsoft.com/accounts/eastus_X-X-X-X-X/browsers?load-extension=${extension_path}) or pass the extension path as a CLI argument I may being missing?

Some examples of other cloud solutions that have this:

Any insight on this issue would be very helpful as it's a blocker for currently moving to Playwright, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions