verify Attribute

This is a pre-built Action that comes for the captured Element, instructs the Avo Assure to verify the attribute name provided in the input value and store the result in the dynamic variable.

Syntax

Input Value: <Attribute Name>;<Attribute Value(Optional)>;<css>(Optional)

Argument
Description

<Attribute Name>

(Required)

Name of the attribute to be verified (e.g., id, type, class, )

<Attribute Value>

(Optional)

Expected value for the attribute

<css>

(Optional)

Specify CSS to verify style-based attributes (if required)

Output Value

Argument
Description

<Dynamic Variable>(Optional);<Dynamic Variable> (Optional)

This dynamic variable holds the status of the action as True or False

Example

Verifies if the element's type attribute exists or matches the expected value.

The verify Attribute action takes the input from the Input Value column (e.g., ID) and checks whether the element contains that attribute. The result of the action is stored in the {Verify} variable, with possible values:

  • True – if the attribute exists (and matches the value, if provided)

  • False – if the attribute doesn't exist or doesn't match the expected value

Last updated

Was this helpful?