Answers for "how to empty a filled input in cypress"

0

how to empty a filled input in cypress

cy.get('[type="text"]').clear() // Clear text input
cy.get('textarea').type('Hi!').clear() // Clear textarea
cy.focused().clear() // Clear focused input/textarea
Posted by: Guest on April-04-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language