Home > assistive-playwright-client > CalibrationResult > (constructor)
Creates an instance of CalibrationError, containing the coordinates of the viewport inside the browser window. An object of this class is returned by playwrightCalibrate() if the calibration succeeds.
Signature:
constructor(
x: number,
y: number,
screenWidth: number,
screenHeight: number,
vm: VM,
frame: Page | Frame);
Parameter | Type | Description |
---|---|---|
x | number | Cf CalibrationResult.x |
y | number | Cf CalibrationResult.y |
screenWidth | number | Cf CalibrationResult.screenWidth |
screenHeight | number | Cf CalibrationResult.screenHeight |
vm | VM | Cf CalibrationResult.vm |
frame | Page | Frame | Cf CalibrationResult.frame |