Assistive-Webdriver

Home > assistive-playwright-client > playwrightCalibrate

playwrightCalibrate() function

Finds the coordinates of the viewport in the browser window. There is no playwright API for this, so it is done by displaying QR codes in the viewport and finding them in the screen capture.

Signature:

export declare function playwrightCalibrate(vm: VM, frame: Page | Frame, options?: CalibrationOptions): Promise<CalibrationResult>;

Parameters

Parameter Type Description
vm VM Virtual machine, as returned by createVM
frame Page | Frame Playwright page or frame
options CalibrationOptions calibration options

Returns:

Promise<CalibrationResult>