protractor icon indicating copy to clipboard operation
protractor copied to clipboard

Protractor.waitForAngular - add posibility to wait for jQuery.ajax requests

Open vitrilo opened this issue 11 years ago • 0 comments

Our and other projects uses Angular and some other third-party libs. Those libs in common use jQuery.ajax - which activity doesn't tracked by waitForAngular (and internally by $browser.notifyWhenNoOutstandingRequests).

It will be good to waitForAngular internally checks for jQuery.active ==0 or provide an API to add custom additional checks.

Without this our test code become polluted by sleep or our custom waitForJquery (jQuery.active ==0) before each significant operation.

vitrilo avatar May 08 '15 14:05 vitrilo