Wait UP TO N seconds for the page to settle. Returns early on idle.
"Settle" = DOM ready, no in-flight fetch/XHR, no pending setTimeout
callbacks, and no MutationObserver activity for at least 250 ms.
Step pattern
When (I |we )*wait for (\d+) seconds?Examples
Example #1
When I wait for 1 secondExample #2
When I wait for 5 secondsExample #3
And I wait for 3 secondsExample #4
When we wait for 2 secondsExample #5
And we wait for 10 secondsExample #6
When I press "Save"
And I wait for 2 seconds
Then I should see "Saved"