Then I should not be on "specific page"

This step definition is used to be sure that the current page is not the specific page.

 

Then (I |we )*should be on( the)* "([^"]*)?"( page)*

 

Examples:

Then I should not be on "/"
Then I should not be on "/user/login"
Then I should not be on "https://un.org"
Then we should not be on the "/" page
Then we should not be on "/user/login"
Then we should not be on "https://google.com"
Then should not be on "/user/reset"
Then we should not be on the "https://x.com" page