Class Browser

A class representing a Browser with various methods to interact with it.

Constructors

Properties

Accessors

Methods

Constructors

Properties

_ws: BiDi

Accessors

  • get userContexts(): Promise<GetUserContextsResult>
  • Getter for the user contexts.

    Returns Promise<GetUserContextsResult>

    • A promise that resolves to the user contexts.

Methods

  • Method to close the browser.

    Returns Promise<void>

    • A promise that resolves when the browser is closed.
  • Method to create a new user context.

    Returns Promise<UserContextInfo>

    • A promise that resolves when the user context is created.
  • Method to remove a user context.

    Parameters

    • context: RemoveUserContextParameters

      The user context to remove.

    Returns Promise<void>

    • A promise that resolves when the user context is removed.