Strategy for generating XPath selectors based on the element's ID attribute.

Implements

Constructors

Methods

Constructors

  • Creates an instance of IdStrategy.

    Parameters

    • options: {
          idName: ((id: string) => boolean);
      }

      Configuration options for the strategy.

      • idName: ((id: string) => boolean)

        A function to validate the ID name.

          • (id): boolean
          • Parameters

            • id: string

            Returns boolean

    Returns IdStrategy

Methods