Skip to main content

Add function enabled/disabled element

In previuos test applications we can check if a button is enabled or disabled.

It would be a great help in our daily work

Status: Completed5 comments

Log in to comment and vote

Comments5

  • Paweł Bylina changed status to Completed
    Team•

    Oct 23, 2025

    Pinned

    Assertions “Element is disabled” and “Element is not disabled” have arrived!

  • Ecasaseca

    •

    Jun 6, 2025

    Check enabled element and check disabled element

    • Paweł Bylina

      Team•

      Jun 6, 2025

      Hmm, I agree, this should be done. Right now, you can achieve this using a custom JS assertion only.

      • Ecasaseca

        •

        Jun 9, 2025

        I try with several combinations, like:

        But I have not succeeded

        • Paweł Bylina

          Team•

          Jun 9, 2025

          You should use:

          return document.getElementbyType(‘submit’).disabled === true;

          Btw. please ask those questions on support support@bugbug.io