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?