This step definition is used to set the initial context or state for a test scenario. It specifies that the user is currently on a specific page of the website being tested.
Given (I am |we are )*on( the)* "([^"]*)?"( page)*
By executing this step, the necessary actions are performed to navigate to a specific page. This may involve opening a web browser, entering the URL of a specific page, and waiting for the page to load.
Example to use:
Given I am on "contact"
Given we are on "user/login"
Given I am on the "/about-us" page
Given we are on the "/about-us" page
Given on "/about-us"
Given on the "/about-us" page