Cypress · Junior · Question 13 of 75
How do you press Enter after typing?
- 1
.type('query{enter}') - 2
.type('query').press('Enter') - 3
.type('query\n')
Show the answer
Correct answer: .type('query{enter}')
Explanation
Special sequences like {enter}, {esc} and {selectall} go inside .type().