Files
cypress/docs/source/api/introduction/api.md
T

1.7 KiB

title, comments
title comments
API false

Sections

  • {% url 'Commands:' and %} Drive your tests in the browser like a real user would. They let you perform actions like typing, clicking, xhr requests, and can also assert things like "my button should be disabled".

  • {% url 'Utilities:' _ %} Access methods from other commonly used libraries.

  • {% url 'Cypress API:' cypress-commands %} Configure the behavior of how Cypress works internally. You can do things like access Environment Variables, change configuration, create custom commands, and more.

Definitions

Each document attempts to cover the essentials of each method including:

  • Syntax: The method signature and any accepted arguments.

  • Usage: How to call the method including valid and invalid uses.

  • Arguments: Definition of arguments including types accepted.

  • Yields: What is yielded (and in rare cases, returned) from the method.

  • Default: What default assertions (if any) are automatically applied.

  • Timeout: If defined, the amount of time the method allows to execute before throwing.

  • Examples: Real world examples of using the methods.

  • Notes: Any exceptions to take into account when using the method.

  • Command Log: If and how the method displays in the Cypress Command Log and console.

  • See also: Other related methods.

Reporting a Problem

If you spot a typo, broken link, incorrect code sample or want to contribute to improve the documentation, we're happy to have your help!

To report a problem:

  • Use the 'Improve this doc' link at the top of the document.

  • Open an issue or pull request to the GitHub repository.