externalSwitch
Hierarchy
- Interaction
- Switch
Index
Methods
staticexternalto
Instructs the
Actorto switch the context for future activities to aSwitchable, such as aPageor aPageElement.Parameters
externalswitchable: Answerable<Switchable>
Returns Switch
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
externaland
Instructs the
Actorto switch the context for future activities to aSwitchable, such as aPageor 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
BrowseTheWebto switch the context for future activities to aSwitchable, such as aPageor aPageElement.Please note that when the
PageElementimplementingSwitchablerepresents aniframe, usingSwitchwill result in switching the top-level browsing context to thatiframe.When the
PageElementrepresents any other HTMLElement, usingSwitchsetsHTMLElement#focuson 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
BrowseTheWebSwitchableSwitchableOrigin