Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private const string waitScript = @"
- if (window.jQuery != undefined) {
- if (window.jQuery.active != 0) return false;
- }
- if (window.angular != undefined) {
- var injector = window.angular.element('.ng-scope').injector();
- if (injector) {
- var http = injector.get('$http');
- if (http && http.pendingRequests && http.pendingRequests.length) return false;
- }
- };
- return true;";
- (bool)((IJavaScriptExecutor)_driver).ExecuteScript(waitScript);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement