Optional
abilityOptional
callStatic
onspecify which element should be focused on
the string representing the locator.
Optional
options: { (optional) options for the focus action.
Optional
timeout?: numbernew Focus instance
simple call with just locator
Click.on(
page.locator('myLocator')
);
with options
Click.on(
page.locator('myLocator'),
{ timeout: 3000 }
);
Generated using TypeDoc
Focus on an element specified by a locator string.