Skip to main content

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"

Status: Planned1 comment

Log in to comment and vote

Comments1

  • Paweł Bylina

    Team•

    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.