Cypress · Junior · Question 12 of 75

How do you type into an input in Cypress?

Show the answer

Correct answer: cy.get('#email').type('a@b.co')

Explanation

.type() sends key events one by one. Special keys use braces, like {enter}. To clear first, chain .clear().

Further reading

Problem with a question

Cypress · Junior · question 12

Test yourself

Take the Cypress · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz