This step definition pauses the test for a specific period or until the page and its parts are fully loaded. Maximum wait time in seconds can be provided.
When (I |we )*wait max of (\d*)( second| seconds|s)?
It will make the testing wait for a period of time until the page and its elements are loaded or the specified maximum number of seconds is reached.
Example:s
When I wait max of 1 secondWhen I wait max of 5 secondsWhen we wait max of 3sWhen wait max of 2sWhen wait max of 2 secondsWhen we wait max of 1 secondWhen we wait max of 5 secondsWhen we wait max of 4s