Functionality: Loads a remote URL into the Cypress Test Runner.
cy.visit('https://example.com')
Functionality: Queries for an element in the DOM using a CSS selector.
cy.get('button').click()
Functionality: Finds an element containing specific text.
cy.contains('Submit').click()
Functionality: Finds an element containing specific text.
cy.get('.btn').click()
Functionality: Types text into an input field or textarea.
cy.get('input[name='email']').type('test@example.com')
Functionality: Clears the value of an input or textarea.
cy.get('input[name='search']').clear()
Functionality: Selects an option in a `` dropdown.
cy.get('select').select('Option 1')
Functionality: Checks a checkbox or radio button.
cy.get('input[type='checkbox']').check()
Functionality: Submits a form.
cy.get('form').submit()
Functionality: Waits for a specified amount of time or waits for a specific route to complete.
cy.wait(1000) // Wait for 1 second
cy.wait('@getData') // Wait for a specific route
Get Updates