Configuration options specific to the Driver SafariDriver.

Hierarchy

Constructors

Methods

  • Returns {}

    The JSON representation of this instance. Note, the returned object may contain nested promised values.

      Suppress

      Suppress [] access on a struct (state inherited from Map).

    • Deletes an entry from this set of capabilities.

      Parameters

      • key: string

        the capability key to delete.

      Returns boolean

    • Parameters

      • key: string

        The capability to return.

      Returns any

      The capability with the given key, or {@code null} if it has not been set.

    • Returns undefined | string

      the behavior pattern for responding to unhandled user prompts, or undefined if not set.

    • Returns undefined | string

      the configured browser name, or undefined if not set.

    • Returns undefined | string

      the configured browser version, or undefined if not set.

    • Returns the configured page load strategy.

      Returns undefined | string

      the page load strategy.

    • Returns undefined | string

      the configured platform or undefined if not set.

    • Parameters

      • key: string

        The capability to check.

      Returns boolean

      Whether the specified capability is set.

    • Parameters

      • key: string

        The capability key.

      • value: any

        The capability value.

      Returns Capabilities

      A self reference.

      Throws

      If the key is not a string.

    • Sets whether a WebDriver session should implicitly accept self-signed, or other untrusted TLS certificates on navigation.

      Parameters

      • accept: boolean

        whether to accept insecure certs.

      Returns Capabilities

      a self reference.

    • Sets the default action to take with an unexpected alert before returning an error. If unspecified, WebDriver will default to UserPromptHandler.DISMISS_AND_NOTIFY.

      Parameters

      • behavior: string

        The way WebDriver should respond to unhandled user prompts.

      Returns Capabilities

      A self reference.

    • Instruct the SafariDriver to use the Safari Technology Preview if true. Otherwise, use the release version of Safari. Defaults to using the release version of Safari.

      Parameters

      • useTechnologyPreview: boolean

      Returns Options

      A self reference.

    Generated using TypeDoc