Quiz: Cypress

Test your knowledge of selecting elements and making assertions with Cypress.

1

Which option selects the following element?

<h1>Hello World</h1>
A)
cy.contains("h1")
B)
cy.get("Hello World")
C)
cy.get("h1")
D)
cy.select("h1")
Question 1 of 50 attempted

Get hands-on with 1400+ tech skills courses.