externalPlaywrightRootLocator
Hierarchy
- RootLocator<playwright.Locator>
- PlaywrightRootLocator
Index
Constructors
Properties
Methods
Constructors
externalconstructor
Parameters
externalpage: Page
Returns PlaywrightRootLocator
Properties
external[custom]
Type declaration
Parameters
externaldepth: number
externaloptions: InspectOptionsStylized
externalinspect: typeof inspect
Returns string
Methods
externalisPresent
Returns Promise<boolean>
externalnativeElement
Returns Promise<Pick<Locator, locator>>
externalevaluate
Evaluates the given
pageFunction
in the context of the current frame. Seeplaywright.Frame.evaluate
.Type parameters
- R
- Arguments
Parameters
externalpageFunction: PageFunction<Arguments, R>
externalarg: Arguments
Returns Promise<R>
externalswitchToFrame
Switches the current context to the frame identified by the given locator.
Parameters
externalframe: Locator
Returns Promise<void>
externalswitchToParentFrame
Switches the current context to the parent frame of the current frame.
Returns Promise<void>
externalswitchToMainFrame
Switches the context to the top-level frame.
Returns Promise<void>
externaltoString
Returns string
Playwright-specific implementation of
RootLocator
.