Home > assistive-playwright-client > CalibrationError
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
| 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. |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| screenshot | PNG | Screenshot of the virtual machine, in which the browser viewport could not be found. |
| Method | Modifiers | Description |
|---|---|---|
| saveScreenshot(fileName) | Saves the screenshot as a file. |