Skip to main content

externalPlaywrightLocator

Playwright-specific implementation of Locator.

Hierarchy

  • Locator<playwright.Locator, string>
    • PlaywrightLocator

Index

Constructors

externalconstructor

Properties

externalreadonlyselector

selector: Selector

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<Locator>
  • Returns Promise<Locator>

externalallNativeElements

  • allNativeElements(): Promise<Locator[]>
  • Returns Promise<Locator[]>

externalof

externalclosestTo

externallocate

externalelement

externalallElements

  • Returns Promise<PageElement<Locator>[]>

externalswitchToFrame

  • switchToFrame(element: Locator): Promise<void>
  • Parameters

    • externalelement: Locator

    Returns Promise<void>

externalswitchToParentFrame

  • switchToParentFrame(): Promise<void>
  • Returns Promise<void>

externalswitchToMainFrame

  • switchToMainFrame(): Promise<void>
  • Returns Promise<void>

externaltoString

  • toString(): string
  • Returns string