Skip to main content

externalPlaywrightPage

Playwright-specific implementation of Page.

Hierarchy

  • Page<playwright.Locator>
    • PlaywrightPage

Index

Constructors

externalconstructor

Properties

externalreadonlyid

id: CorrelationId

Methods

staticexternalcurrent

externalcreatePageElement

  • createPageElement(nativeElement: Locator): PageElement<Locator>
  • Parameters

    • externalnativeElement: Locator

    Returns PageElement<Locator>

externallocate

externallocateAll

externalnavigateTo

  • navigateTo(destination: string): Promise<void>
  • Parameters

    • externaldestination: string

    Returns Promise<void>

externalnavigateBack

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

externalnavigateForward

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

externalreload

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

externalsendKeys

  • sendKeys(keys: (string | Key)[]): Promise<void>
  • Parameters

    • externalkeys: (string | Key)[]

    Returns Promise<void>

externalexecuteScript

  • executeScript<Result, InnerArguments>(script: string | (...parameters: InnerArguments) => Result, ...args: InnerArguments): Promise<Result>
  • Type parameters

    • Result
    • InnerArguments: any[]

    Parameters

    • externalscript: string | (...parameters: InnerArguments) => Result
      • externalrest...args: InnerArguments

      Returns Promise<Result>

    externalexecuteAsyncScript

    • executeAsyncScript<Result, InnerArguments>(script: string | (...args: [...parameters: InnerArguments[], callback: (result: Result) => void]) => void, ...args: InnerArguments): Promise<Result>
    • Type parameters

      • Result
      • InnerArguments: any[]

      Parameters

      • externalscript: string | (...args: [...parameters: InnerArguments[], callback: (result: Result) => void]) => void
        • externalrest...args: InnerArguments

        Returns Promise<Result>

      externallastScriptExecutionResult

      • lastScriptExecutionResult<Result>(): Result
      • Type parameters

        • Result = any

        Returns Result

      externaltakeScreenshot

      • takeScreenshot(): Promise<string>
      • Returns Promise<string>

      externalcookie

      • cookie(name: string): Promise<Cookie>
      • Parameters

        • externalname: string

        Returns Promise<Cookie>

      externalsetCookie

      • Parameters

        Returns Promise<void>

      externaldeleteAllCookies

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

      externaltitle

      • title(): Promise<string>
      • Returns Promise<string>

      externalname

      • name(): Promise<string>
      • Returns Promise<string>

      externalurl

      • url(): Promise<URL>
      • Returns Promise<URL>

      externalviewportSize

      • viewportSize(): Promise<{ width: number; height: number }>
      • Returns Promise<{ width: number; height: number }>

      externalsetViewportSize

      • setViewportSize(size: { width: number; height: number }): Promise<void>
      • Parameters

        • externalsize: { width: number; height: number }
          • externalwidth: number
          • externalheight: number

        Returns Promise<void>

      externalclose

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

      externalcloseOthers

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

      externalisPresent

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

      externalnativePage

      • nativePage(): Promise<Page>
      • Returns Promise<Page>

      externalswitchTo

      • Switches the current browsing context to the given page and returns an object that allows the caller to switch back to the previous context when needed.

        Learn more


        Returns Promise<SwitchableOrigin>

      externalmodalDialog

      externaltoString

      • toString(): string
      • Returns a description of this Page and its ID.


        Returns string