08 / 10

List all Utility Commands

These commands provide additional utilities for testing:​
  1. 1

    cy.log(message): Logs a message to the Cypress Command Log.​

  2. 2

    cy.wait(time): Waits for a specified amount of time (in milliseconds).

  3. 3

    cy.pause(): Pauses test execution.​

  4. 4

    cy.debug(): Pauses test execution and allows debugging.​

  5. 5

    cy.screenshot(): Takes a screenshot of the application.​

  6. 6

    cy.viewport(width, height): Sets the viewport size.​

  7. 7

    cy.clock(): Controls time-related functions.​

  8. 8

    cy.tick(time): Advances the clock by a specified amount of time.​