When I reload the page

This step triggers a full browser reload of the current page, equivalent to pressing F5 or the browser's refresh button. It is useful for verifying that the application re-renders correctly after a state change, that session data persists across page loads, or that a cached view reflects the latest content.

The step calls Playwright's page.reload() method directly. No additional wait is applied after the reload, so you may want to follow this step with a wait or a condition-based assertion if the page takes time to settle. The pronoun prefix (I or we) and the trailing words the page or page are all optional.

Accepted phrasings

When I reload
When I reload the page
When we reload page
When we reload the page
And I reload
And I reload the page
And we reload page
And we reload the page

Examples

When I reload
And I reload the page
And we reload page
And we reload the page

In a real scenario

Scenario: Changes to account preferences persist after a page reload
  Given I am on "/account/preferences"
    And I check "Receive email notifications"
    And I press "Save"
   When I reload the page
   Then the "Receive email notifications" checkbox should be checked

Related steps

Back to Navigation Steps