Search code examples
angularjsdraggablecypress

Cannot find draggable attribute in Cypress


How can I get 'draggable' property of AngularJS in Cypress as Cypress can not find draggable property and "should('have.attr','draggable')" returns an error?


Solution

  • Based on the html provided in the comment, can you try this to check if it works?

    cy.get('div[ui-draggable="abd"]')

    or

    cy.get('div[draggable="true"]')