Navigation Steps

Anonymous user, homepage, paths, history, URL assertions. The entry kit every scenario needs.

Step phrasings in this group

The book sidebar lists each individual step page under this group.

Given I am an anonymous user

Clear cookies and navigate to the launch URL as an anonymous visitor.

Given I am on homepage

Open the homepage.

Given I am on "/about-us.html"

Open a specific page under the launch URL.

When I go to homepage

Navigate to the homepage.

When I go to "/contact-us.html"

Navigate to a specific page.

When I move forward one page

Moves forward one page in browser history.

When I move backward one page

Moves backward one page in browser history.

When I reload

Reloads the current page.

Then I should be on homepage

Assert that the current page is or is not the homepage.

Then I should be on "/"

Assert that the current path is or is not equal to the specified path.

Then the url should match "/contact-us.html"

Assert that the current URL matches or does not match a regex pattern.

Back to all step groups