Assistive-Webdriver

Home > assistive-playwright-client > CalibrationError

CalibrationError class

Object that is thrown by playwrightCalibrate() if the calibration process fails because the position of the browser viewport cannot be detected on the screen of the virtual machine.

Signature:

export declare class CalibrationError 

Constructors

Constructor Modifiers Description
(constructor)(screenshot)   Creates an instance of CalibrationError, containing information about why the calibration failed. This is thrown by playwrightCalibrate() to give details allowing to understand why the calibration failed.

Properties

Property Modifiers Type Description
screenshot   PNG Screenshot of the virtual machine, in which the browser viewport could not be found.

Methods

Method Modifiers Description
saveScreenshot(fileName)   Saves the screenshot as a file.