@Component
public class NavigationStepDefinitions
extends java.lang.Object
Constructor and Description |
---|
NavigationStepDefinitions() |
Modifier and Type | Method and Description |
---|---|
void |
goBack(java.lang.String ignoreErrors)
Go back
|
void |
goForward(java.lang.String ignoreErrors)
Go forward
|
void |
openHash(java.lang.String alias,
java.lang.String hash)
Updates the location with the given hash.
|
void |
refresh(java.lang.String ignoreErrors)
Refresh the page
|
@When(value="I go back( ignoring errors)?") public void goBack(java.lang.String ignoreErrors)
ignoreErrors
- Ignores any errors thrown by the web driver. Only useful for debugging@When(value="I go forward( ignoring errors)?") public void goForward(java.lang.String ignoreErrors)
ignoreErrors
- Ignores any errors thrown by the web driver. Only useful for debugging@When(value="I refresh the page( ignoring errors)?") public void refresh(java.lang.String ignoreErrors)
ignoreErrors
- Ignores any errors thrown by the web driver. Only useful for debugging@When(value="I go to the hash location( alias)? \"(.*?)\"") public void openHash(java.lang.String alias, java.lang.String hash)
alias
- Add this word to indicate that the hash comes from an aliashash
- The name of the hash