externalSwitch
Hierarchy
- Interaction
- Switch
Index
Methods
staticexternalto
Instructs the
Actor
to switch the context for future activities to aSwitchable
, such as aPage
or aPageElement
.Parameters
externalswitchable: Answerable<Switchable>
Returns Switch
externalinstantiationLocation
Returns the location where this
Activity
was 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
externaland
Instructs the
Actor
to switch the context for future activities to aSwitchable
, such as aPage
or aPageElement
, perform a sequence ofactivities
, and then switch the context back.Parameters
externalrest...activities: Activity[]
A sequence of activities to perform
Returns Task
externalperformAs
Parameters
externalactor: UsesAbilities & AnswersQuestions
Returns Promise<void>
Instructs an actor who has the ability to
BrowseTheWeb
to switch the context for future activities to aSwitchable
, such as aPage
or aPageElement
.Please note that when the
PageElement
implementingSwitchable
represents aniframe
, usingSwitch
will result in switching the top-level browsing context to thatiframe
.When the
PageElement
represents any other HTMLElement, usingSwitch
setsHTMLElement#focus
on the specified element. Assuming it can be focused.Note: The focused element is the element which will receive keyboard press events by default.
Perform activities in the context of an iframe
Perform activities in the context of another page
Perform activities in the context of a focused page element
Learn more
BrowseTheWeb
Switchable
SwitchableOrigin