T E S B O

Tesbo

Assert attribute value of element

1. Assert element  attribute value is equal to given text #

Syntax :

Verify: Get attribute 'attribute name' of @element is equal to 'attribute value'

2. Assert element attribute value is not equal to given text #

Syntax :

Verify: Get attribute 'attribute name' of @element is not equal to 'attribute value'

3. Assert element attribute value is equal to ignore case of given text #

Syntax :

Verify: Get attribute 'attribute name' of @element is equal to ignore case 'attribute value'

4. Assert element attribute text contains is same as given text #

Syntax :

Verify: Get attribute 'attribute name' of @element contains is 'attribute value'

i.e

Test: Assert attribute value of element
#All #assertion
Step: open url 'https://www.mathsisfun.com/numbers/counting.html'
Verify: Get attribute 'tabindex' of @AlgebraTab is not equal to '2'
Verify: Get attribute 'tabindex' of @AlgebraTab is equal to '0'
Verify: Get attribute 'href' of @AlgebraTab1 is equal to ignore case 'https://WWW.mathsisfun.com/algebra/index.HTML'
Verify: Get attribute 'href' of @AlgebraTab1 is equal to 'https://www.mathsisfun.com/algebra/index.html'
Verify: Get attribute 'href' of @AlgebraTab1 is not equal to 'https://www.mathsisfun.com//index.html'
Verify: Get attribute 'href' of @AlgebraTab1 contains 'https://www.mathsisfun.com/algebra/'
End

You can find a similar example from Tesbo-Skeleton as well

Powered by BetterDocs

Leave a Comment