abstractRootLocator <Native_Element_Type>
Hierarchy
- RootLocator
Implements
- Optional
Index
Constructors
Methods
Properties
Constructors
constructor
Type parameters
- Native_Element_Type
Returns RootLocator<Native_Element_Type>
Methods
publicabstractswitchToFrame
Parameters
element: Native_Element_Type
Returns Promise<void>
publicabstractswitchToParentFrame
Returns Promise<void>
publicabstractswitchToMainFrame
Returns Promise<void>
publicabstractisPresent
Returns Promise<boolean>
publicabstractnativeElement
Returns Promise<Partial<Native_Element_Type>>
toString
Returns string
Properties
[custom]
Type declaration
Parameters
depth: number
options: InspectOptionsStylized
inspect: typeof inspect
Returns string
RootLocator represents the context in which Locator looks for PageElement or PageElements. This context is either a parent element, or some representation of the top-level browsing context.
Learn more