Mouse

Playwright\Input\MouseInterface

Sends mouse input to a page. Coordinates are relative to the page viewport. Options control buttons, click counts, and event timing.

Methods

click()

void
function click(float $x, float $y, array $options = []): void

dblclick()

void
function dblclick(float $x, float $y, array $options = []): void

down()

void
function down(array $options = []): void

move()

void
function move(float $x, float $y, array $options = []): void

up()

void
function up(array $options = []): void

wheel()

void
function wheel(float $deltaX, float $deltaY): void