externalPress
Hierarchy
Index
Methods
staticexternalthe
Instantiates an interaction that instructs the actor to press a sequence of keys,
When no
fieldis specified, the key sequence will be sent to the currently focused element, and if no element is focused - to thedocument.bodyto handle.Parameters
externalrest...keys: Answerable<string | string[] | Key | Key[]>[]
A sequence of one or more keys to press
Returns Activity & { in: (field: Answerable<PageElement<any>>) => Interaction }
externalinstantiationLocation
Returns the location where this
Activitywas instantiated.Returns FileSystemLocation
externaldescribedBy
Resolves the description of this object in the context of the provided
actor.Parameters
externalactor: AnswersQuestions & UsesAbilities & { name: string }
Returns Promise<string>
externaltoString
Returns a human-readable description of this object.
Returns string
externalin
Send the key sequence to a specific element.
Parameters
externalfield: Answerable<PageElement<any>>
Returns Interaction
externalperformAs
Instructs the provided
Actorto perform thisInteraction.Learn more
Parameters
externalactor: UsesAbilities & AnswersQuestions
Returns Promise<void>
Instructs an actor who has the ability to
BrowseTheWebto send a key press or a sequence of keys to a Web element.Note: On macOS, some keyboard shortcuts might not work with the
devtoolsprotocol.For example:
Key.Meta+C, useKey.Control+Key.InsertKey.Meta+X, useKey.Control+Key.DeleteKey.Meta+V, useKey.Shift+Key.InsertExample widget
Lean Page Object describing the widget
Pressing keys
Learn more
KeyBrowseTheWebPageElement