Optional abilityOptional callStatic atspecify which point should be clicked at
the point representing the coordinates.
Optional options: ClickActionOptions(optional) options for the click action.
new Click instance
simple call with just point
Click.at(
{ x: 100, y: 200 }
);
with options
Click.at(
{ x: 100, y: 200 },
{ timeout: 3000 }
);
Static onspecify which element should be clicked on
the string representing the locator.
Optional options: ClickActionOptions(optional) options for the click action.
new Click instance
simple call with just locator
Click.on(
page.locator('myLocator')
);
with options
Click.on(
page.locator('myLocator'),
{ timeout: 3000 }
);
Click on an element specified by a locator string.