PlaywrightRootLocator
Hierarchy
- RootLocator<playwright.Locator>
- PlaywrightRootLocator
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
page: Page
Returns PlaywrightRootLocator
Properties
[custom]
Type declaration
Parameters
depth: number
options: InspectOptionsStylized
inspect: typeof inspect
Returns string
Methods
isPresent
Returns Promise<boolean>
nativeElement
Returns Promise<Pick<Locator, locator>>
evaluate
Evaluates the given
pageFunction
in the context of the current frame. Seeplaywright.Frame.evaluate
.Type parameters
- R
- Arguments
Parameters
pageFunction: PageFunction<Arguments, R>
arg: Arguments
Returns Promise<R>
switchToFrame
Switches the current context to the frame identified by the given locator.
Parameters
frame: Locator
Returns Promise<void>
switchToParentFrame
Switches the current context to the parent frame of the current frame.
Returns Promise<void>
switchToMainFrame
Switches the context to the top-level frame.
Returns Promise<void>
toString
Returns string
Playwright-specific implementation of RootLocator.