Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Target

Index

Methods

browser

  • Get the browser the target belongs to.

    Returns Browser

browserContext

  • The browser context the target belongs to.

    Returns BrowserContext

createCDPSession

  • Creates a Chrome Devtools Protocol session attached to the target.

    Returns Promise<CDPSession>

opener

  • Get the target that opened this target. Top-level targets return null.

    Returns null | Target

page

  • page(): Promise<Page>
  • Returns the target Page or a null if the type of the page is not "page".

    Returns Promise<Page>

type

  • Identifies what kind of target this is.

    Returns TargetType

url

  • url(): string
  • Returns the target URL.

    Returns string

worker

  • worker(): Promise<null | Worker>
  • If the target is not of type service_worker or shared_worker, resolves null.

    Returns Promise<null | Worker>

Generated using TypeDoc