How to get a list of disabled elements on a page using Cypress?
Thanks in advance.
A disabled html element has disabled
attribute, e.g.:
<input type="text" id="name" name="name" disabled>
to find such elements in Cypress could be achieved with .get()
command:
cy
.get('[disabled]')
cy.get("#name").should('have.attr', 'disabled');