How do I handle asynchronous javascript / AJAX?
if you include asynchronous JS in your definition of done, you’ll need to code around that specifically. There’s an open feature request to have Watir’s wait method track XHRs and timers that are launched when the page is loaded, and wait for them as well. That may be tricky to do though, and with an all-volunteer project, it really depends on someone making the time to do it. In lieu of that, one option is having the application keep track if XHRs and timers that it kicks off, and setting the some value to true when they are all complete.
if you include asynchronous JS in your definition of done, you’ll need to code around that specifically. There’s an open feature request to have Watir’s wait method track XHRs and timers that are launched when the page is loaded, and wait for them as well. That may be tricky to do though, and with an all-volunteer project, it really depends on someone making the time to do it. In lieu of that, one option is having the application keep track if XHRs and timers that it kicks off, and setting the some value to true when they are all complete.
if you include asyncronous JS in your definition of done, you’ll need to code around that specifically. There’s an open feature request