This step opens a specific page by appending the given path or URL to the configured launch URL. It is used in a Given context to place the browser on a known page before the scenario's actions begin. After navigation, the step waits for the body element to attach and then waits for the page load to settle. The timeout for the body check is 10 seconds.
The value inside the quotes is appended directly to the launch URL, so a leading slash is required for relative paths (for example "/about"). If the value is a full URL starting with https:// it is used as-is rather than being appended. The pronoun prefix (I am, we are, or none) and the optional trailing word page are both optional and do not affect behaviour.
Accepted phrasings
Given I am on "/about-us.html"
Given I am on the "/about-us.html" page
Given we are on "/contact"
Given we are on the "/contact" page
Given on "/about-us.html"
Given on the "/about-us.html" page
Given I am on "https://example.org"
Examples
Given I am on "/about-us.html"
Given I am on the "/contact-us.html" page
Given we are on "/account/login"
Given on "/terms"
In a real scenario
Scenario: Verify that anonymous users cannot access restricted pages
Given I am an anonymous user
When I go to "/account/settings"
And wait
Then I should see "Log in"