Optional
abilityOptional
callStatic
inFinds the specified locator and will it with the specified input string.
the locator.
the input.
Optional
options: TypeActionOptions(optional) options for the type action.
new Type instance
simple call with just locator
Type.in(
page.locator('myLocator'),
'myInput'
);
with options
Type.in(
page.locator('myLocator'),
'myInput',
{ timeout: 3000 }
);
Generated using TypeDoc
Type specified input into an element specified by a locator.
Deprecated
In most cases, you should use Fill.in instead. You only need to press keys one by one if there is special keyboard handling on the page - in this case use Press.characters.