Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I handle asynchronous javascript / AJAX?

Ajax asynchronous Javascript
0
10 Posted

How do I handle asynchronous javascript / AJAX?

0

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.

0

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.

0

if you include asyncronous 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 value of a hidden field to true when they are all complete. Then all you need to do is modify wait to wait for that condition as well.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.