waitForResponse
Wait until at least one matching request has received a response.
Usage
mock.waitForResponse({ timeout, interval, timeoutMsg })
Parameters
| Name | Type | Details |
|---|---|---|
optionsoptional | WaitForOptions | wait options |
options.timeoutoptional | Number | max wait time in ms (defaults to browser.options.waitforTimeout) |
options.intervaloptional | Number | poll interval in ms (defaults to browser.options.waitforInterval) |
options.timeoutMsgoptional | String | custom timeout error message |