1

I need to wait all gapi calls in my automated tests. In order to wait jquery ajax I execute script:

browser.executeScript("return jQuery.active")

And I can see number of active(unfinished) calls.

But in doesn't work for gapi calls. Does anybody know to wait google api calls?

NickG
  • 11
  • 1
  • i think you can wait on the plain javascript `document.ReadyState` (as opposed to jQuery,Active) - saw something about it on this very forum a few days back – jim tollan Oct 28 '15 at 13:33
  • no, it doesn't work. `document.readyState` returns complete even if api calls in active state. – NickG Oct 29 '15 at 11:58
  • ok, back to the drawing board then :( – jim tollan Oct 29 '15 at 13:46
  • this was the answer i was thinking about: http://stackoverflow.com/questions/33348600/selenium-wait-for-ajax-content-to-load-universal-approach – jim tollan Oct 29 '15 at 13:48

0 Answers0