Interface TestElementOpts

An object with keys to check elements against. If a key is tag_name, tag_type or tag_contains, it will check the value against that specific value. Otherwise, it will check an attribute with the key's name.

interface TestElementOpts {
    tag_contains?: string | ((data?) => boolean);
    tag_name?: string | ((name) => boolean);
    tag_type?: string | ((name) => boolean);
    [attributeName: string]: undefined | string | ((attributeValue) => boolean);
}

Indexable

[attributeName: string]: undefined | string | ((attributeValue) => boolean)

Properties

tag_contains?: string | ((data?) => boolean)

Type declaration

    • (data?): boolean
    • Parameters

      • Optional data: string

      Returns boolean

tag_name?: string | ((name) => boolean)

Type declaration

    • (name): boolean
    • Parameters

      • name: string

      Returns boolean

tag_type?: string | ((name) => boolean)

Type declaration

    • (name): boolean
    • Parameters

      • name: string

      Returns boolean