Strategy for generating XPath selectors based on element attributes.

Implements

Constructors

Methods

Constructors

  • Creates an instance of AttributeStrategy.

    Parameters

    • options: {
          attr: ((name: string, value: string) => boolean);
      }

      Configuration options for the strategy.

      • attr: ((name: string, value: string) => boolean)

        A function to determine if an attribute should be included in the selector.

          • (name, value): boolean
          • Parameters

            • name: string
            • value: string

            Returns boolean

    Returns AttributeStrategy

Methods