add wait.byCondition method documentation (#3675)
This commit is contained in:
parent
393a63b61e
commit
841eb0cff0
|
|
@ -1134,6 +1134,10 @@ Wait for an element found by xpath to appear before maxTime. The element needs t
|
|||
#### wait.bySelector(selector, maxTime)
|
||||
Wait for an element found by selector to appear before maxTime. The element needs to be visible for the user. If the element do not appear within maxTime an error will be thrown.
|
||||
|
||||
#### wait.byCondition(condition, maxTime)
|
||||
Wait for an condition that will eventually return a truthy-value before maxTime. If the condition do not met within maxTime an error will be thrown.
|
||||
condition example: document.querySelector(`a.active`).innerHTML === 'Start'
|
||||
|
||||
#### wait.byPageToComplete()
|
||||
Wait for the page to finish loading by using the configured [page complete check](/documentation/sitespeed.io/browsers/#choose-when-to-end-your-test). This can be useful if you use Selenium to click on elements and want to wait on a new page to load.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue