Hi Thiago,
thank you very much for the hint. Look that I searched at the wrong
place. I could solve my problem using the following script:
define(["jquery"],function($) {
var ajaxCount=0;
$(document).ajaxStart(function() {
ajaxCount++;
console.log("Ajax Start. Number of runing ajax requests:
"+ajaxCount);
document.ajaxRunning=ajaxCount>0;
});
$(document).ajaxStop(function() {
ajaxCount--;
console.log("Ajax Stop. Number of runing ajax requests:
"+ajaxCount);
document.ajaxRunning=ajaxCount>0;
});
});
Plus a special "WebDriverWait"-Condition that checks this flag.
On Wed, 23 Jul 2014 10:46:24 -0300, Michael Wyraz
<michael.wy...@evermind.de> wrote:
Hi,
Hi!
I'd like to track ajax requests (when do they start, when they are
finished) for some purposes:
Both Prototype and jQuery provide callbacks for this.
--
Mit freundlichen Grüßen / Kind regards
Michael Wyraz
evermind GmbH
Schorlemmerstraße 1
04155 Leipzig
Tel.: +49 (0)341-25 39 66 - 0
Fax: +49 (0)341-25 39 66 - 1
Funk: +49 (0)177-73 00 00 3
E-Mail: michael.wy...@evermind.de
HRB: 21586
Amtsgericht Leipzig
Geschäftsführer:
Christoph Klemm