Skip to main content

externalPlaywrightRootLocator

Playwright-specific implementation of RootLocator.

Hierarchy

Index

Constructors

externalconstructor

  • Parameters

    • externalpage: Page

    Returns PlaywrightRootLocator

Properties

external[custom]

[custom]: (depth: number, options: InspectOptionsStylized, inspect: typeof inspect) => string

Type declaration

    • (depth: number, options: InspectOptionsStylized, inspect: typeof inspect): string
    • Parameters

      • externaldepth: number
      • externaloptions: InspectOptionsStylized
      • externalinspect: typeof inspect

      Returns string

Methods

externalisPresent

  • isPresent(): Promise<boolean>
  • Returns Promise<boolean>

externalnativeElement

  • nativeElement(): Promise<Pick<Locator, locator>>
  • Returns Promise<Pick<Locator, locator>>

externalevaluate

  • evaluate<R, Arguments>(pageFunction: PageFunction<Arguments, R>, arg: Arguments): Promise<R>
  • Evaluates the given pageFunction in the context of the current frame. See playwright.Frame.evaluate.


    Type parameters

    • R
    • Arguments

    Parameters

    • externalpageFunction: PageFunction<Arguments, R>
    • externalarg: Arguments

    Returns Promise<R>

externalswitchToFrame

  • switchToFrame(frame: Locator): Promise<void>
  • Switches the current context to the frame identified by the given locator.


    Parameters

    • externalframe: Locator

    Returns Promise<void>

externalswitchToParentFrame

  • switchToParentFrame(): Promise<void>
  • Switches the current context to the parent frame of the current frame.


    Returns Promise<void>

externalswitchToMainFrame

  • switchToMainFrame(): Promise<void>
  • Switches the context to the top-level frame.


    Returns Promise<void>

externaltoString

  • toString(): string
  • Returns string