@Component
public class InitialisationStepDefinitions
extends java.lang.Object
Constructor and Description |
---|
InitialisationStepDefinitions() |
Modifier and Type | Method and Description |
---|---|
void |
configureAutoaliasing(java.lang.String enabled)
Enables or disables autoaliasing.
|
void |
disableAutoaliasing()
Disables autoaliasing.
|
void |
enableAutoaliasing()
Enables autoaliasing.
|
void |
pageObjectMappings(java.util.Map<java.lang.String,java.lang.String> aliasTable)
Takes a gerkin table and saves the key value pairs (key being alias names referenced in other steps).
|
void |
setDefaultSleepTime(java.lang.String numberOfSeconds)
This step can be used to define the amount of time each additional step will wait before continuing.
|
void |
setDefaultWaitTime(java.lang.Integer numberOfSeconds)
When elements are requested by steps in Iridium, an optional wait time can be defined
that will allow the script to account for elements that might not yet be present.
|
void |
setKeystrokeDelay(java.lang.Integer delay)
Sets the default amount of time to wait between simulated key presses
|
@When(value="^I set the default keystroke delay to \"(\\d+)\" milliseconds$") public void setKeystrokeDelay(java.lang.Integer delay)
delay
- The number of milliseconds to pause between simulated key presses@When(value="^I set the default wait time between steps to \"(\\d+(?:\\.\\d+)?)\"(?: seconds?)?$") public void setDefaultSleepTime(java.lang.String numberOfSeconds)
Set this to 0 to make each step execute immediately after the last one.
numberOfSeconds
- The number of seconds to wait before each step completes@When(value="^I set the default wait for elements to be available to \"(\\d+)\"(?: seconds?)?$") public void setDefaultWaitTime(java.lang.Integer numberOfSeconds)
Constants.WAIT
by default,
and can be overriden with this step.numberOfSeconds
- The number of seconds to wait for elements to be available
before continuing with a step@Given(value="^(?:I set )?the alias mappings") public void pageObjectMappings(java.util.Map<java.lang.String,java.lang.String> aliasTable)
aliasTable
- The key value pairs@Given(value="^I set autoaliasing to \"((?:true)|(?:false))\"$") public void configureAutoaliasing(java.lang.String enabled)
enabled
- set to true or false@Given(value="^I enable autoaliasing$") public void enableAutoaliasing()
@Given(value="^I disable autoaliasing$") public void disableAutoaliasing()