Skip to main content

abstractRootLocator <Native_Element_Type>

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

Hierarchy

Implements

  • Optional

Index

Constructors

constructor

  • new RootLocator<Native_Element_Type>(): RootLocator<Native_Element_Type>
  • Type parameters

    • Native_Element_Type

    Returns RootLocator<Native_Element_Type>

Properties

[custom]

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

Type declaration

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

      • depth: number
      • options: InspectOptionsStylized
      • inspect: typeof inspect

      Returns string

Methods

publicabstractswitchToFrame

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

    • element: Native_Element_Type

    Returns Promise<void>

publicabstractswitchToParentFrame

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

publicabstractswitchToMainFrame

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

publicabstractisPresent

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

publicabstractnativeElement

  • nativeElement(): Promise<Partial<Native_Element_Type>>
  • Returns Promise<Partial<Native_Element_Type>>

toString

  • toString(): string
  • Returns string