Skip to main content

externalabstractRootLocator <Native_Element_Type>

RootLocator represents the context in which Locator looks for PageElement or PageElement. This context is either a parent element, or some representation of the top-level browsing context.

Learn more

Hierarchy

Implements

Index

Constructors

externalconstructor

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

    • Native_Element_Type

    Returns RootLocator<Native_Element_Type>

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

publicexternalabstractswitchToFrame

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

    • externalelement: Native_Element_Type

    Returns Promise<void>

publicexternalabstractswitchToParentFrame

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

publicexternalabstractswitchToMainFrame

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

publicexternalabstractisPresent

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

publicexternalabstractnativeElement

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

externaltoString

  • toString(): string
  • Returns string