Assistive-Webdriver

Home > assistive-playwright-client > connectRemotePlaywright

connectRemotePlaywright() function

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;

Parameters

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

Remarks

This function is used internally by createVM() to give access to the browsers in the virtual machine through the playwright API.