Assert the element has an attribute with specific value
Now we can use the assert the element has the expected “value” attribute. But we can´t assert another attribute value. In my case I´m trying to find an element and assert if it has the attribute “data-state” set to "checked/unchecked"
Log in to comment and vote
Comments3
Paweł Bylina
Dec 2
https://docs.bugbug.io/editing-tests/assertions#element-has-attribute-and-element-does-not-have-attribute
Paweł Bylina
Dec 2
For this, we have existing functionality “Element has attribute”:
with “Attribute name” and “Attribute value”.
Paweł Bylina
May 14
@Daniel Moreno we will add it.
Today, you can use Custom JavaScript for this. If you need help support@bugbug.io can create it for you.