You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
I have successful examples of 'listenXHR', 'getXHR', waitForFirstXHR, waitForFirstXHR with a trigger and waitForXHR with no trigger. However, I'm unable to get waitForXHR to work with a trigger. Here's my code:
// example of waitForXHR with a trigger - doesn't work - 0 results found
browser.url("https://magellanrx.com/member/")
browser.waitForXHR('', 5000, trigger => {
browser.click('xpath', "//a[@class='btn-registration default-custom-button link-button']")
}, xhrs => { // get all the XHRs
console.log("\n** " + xhrs.length + " requests found **\n")
// console.log('URL: ' + xhrs[0].url + '\n')
})
Does anyone have a working example of waitForXHR with a trigger?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have successful examples of 'listenXHR', 'getXHR', waitForFirstXHR, waitForFirstXHR with a trigger and waitForXHR with no trigger. However, I'm unable to get waitForXHR to work with a trigger. Here's my code:
Does anyone have a working example of waitForXHR with a trigger?
The text was updated successfully, but these errors were encountered: