What command is used to load a remote URL into the Cypress Test Runner?
cy.visit()
cy.open()
cy.load()
cy.navigate()
Which command is used to query an element in the DOM using a CSS selector?
cy.find()
cy.query()
cy.get()
cy.select()
How do you find an element containing specific text?
cy.contains()
cy.text()
cy.findText()
cy.search()
Which command is used to type text into an input field?
cy.enter()
cy.type()
cy.write()
cy.fill()
What is the purpose of the cy.clear() command?
To clear the browser cache
To remove a DOM element
To clear the value of an input field
To reset the test state
Which command would you use to type text into an input field in Cypress?
Which command checks a checkbox or radio button?
cy.check()
cy.toggle()
cy.click()
To submit a form, which command should you use?
cy.submit()
cy.send()
cy.post()
cy.push()
How do you verify that Cypress is installed correctly?
npx cypress check
npx cypress verify
npx cypress status
npx cypress test
When creating a new spec file, what is the standard naming convention for the file?
File_name.test.js
File_name.spec.js
File_name.cy.js
File_name.cypress.js
What command opens Cypress Test Runner?
npx cypress open
npx cypress start
npx cypress run
npx cypress launch
In a Cypress test script, how can you ensure an element is visible?
.should('be.visible')
.should('exist')
.should('be.present')
.should('show')
Which command is used to wait for a specific amount of time in a Cypress test?
cy.pause()
cy.delay()
cy.wait()
cy.sleep()
What is the purpose of using cy.get() in Cypress tests?
To submit a form
To retrieve and interact with DOM elements
To navigate to a URL
To type into an input field
How would you handle dynamic content that appears after a certain event in a test?
Use cy.wait() with a static timeout
Use cy.get() with .should('exist')
Use cy.wait() with a network request alias
Use cy.pause() to manually inspect the state