Common Steps - simon-sai/selenium-appium-java GitHub Wiki

I wait {int} seconds

And I wait 5 seconds

The purpose of this step is typically to delay execution, allowing you to observe the test's behavior or wait for certain conditions on the page (though using explicit waits like this is generally discouraged in favor of more efficient wait methods such as WebDriver's waits).

I take a screenshot

When I take a screenshot

This step is commonly used for:

  • Debugging: You may want to capture the state of the application during critical points in your test.
  • Test Reporting: Screenshots are useful for documentation purposes in automated test reports, helping testers or stakeholders review the visual state of the application during test execution.

This step ensures that screenshots are automatically saved and included in the report whenever the step is executed.