Function When_I_screenshot

  • When I screenshot:

    When I screenshot
    

    When I screenshot with filename:

    When I screenshot {string}
    

    The screenshot will be stored in the screenshots folder (e.g., cypress/screenshots).

    Parameters

    • filename: string

    Returns void

    Take a screenshot with an autogenerated filename:

    When I screenshot
    

    Take a screenshot with a specified filename:

    When I screenshot "path/to/screenshot"
    

    When passed a path, the folder structure will be created.

    Takes a screenshot of the application under test. See naming conventions.