Provides methods for managing browser and driver state.

Hierarchy

  • Options

Constructors

Methods

  • Schedules a command to add a cookie.

    Parameters

    Returns Promise<void>

    A promise that will be resolved when the cookie has been added to the page.

    Throws

    if any of the cookie parameters are invalid.

    Throws

    if spec is not a cookie object.

  • Schedules a command to delete all cookies visible to the current page.

    Returns Promise<void>

    A promise that will be resolved when all cookies have been deleted.

  • Schedules a command to delete the cookie with the given name. This command is a no-op if there is no cookie with the given name visible to the current page.

    Parameters

    • name: string

      The name of the cookie to delete.

    Returns Promise<void>

    A promise that will be resolved when the cookie has been deleted.

  • Returns Logs

    The interface for managing driver logs.

  • Set current timeouts

    Parameters

    Returns Promise<void>

  • Returns Window

    The interface for managing the current window.

Generated using TypeDoc