Home > assistive-playwright-client > connectRemotePlaywright
Connects to a remote assistive-playwright-server running at the given URL and returns the chromium, firefox and webkit playwright browser type objects allowing to start and control those browsers remotely.
Signature:
export declare function connectRemotePlaywright<T extends RemotePlaywright>(url: string | URL, localPlaywright?: T): T;
Parameter | Type | Description |
---|---|---|
url | string | URL | URL at which assistive-playwright-server is running. |
localPlaywright | T | reference to the playwright, playwright-core or @playwright/test local package. |
Returns:
T
This function is used internally by createVM() to give access to the browsers in the virtual machine through the playwright API.