Angular objects not recognized -Protractor-net

2019-04-17 14:48发布

Script fails on this step on protractor-net ....NgWebDriver.cs file probably on command step get('$browser') notifyWhenNoOutstandingRequests(callback) - Any idea on what $browser or notifyWhenNoOutstandingRequests used for?

this.jsExecutor.ExecuteAsyncScript(ClientSideScripts.WaitForAngular, this.rootElement)
angular.element(el).injector().get('$browser').notifyWhenNoOutstandingRequests(callback);

1条回答
Rolldiameter
2楼-- · 2019-04-17 15:06

Including the angDriver.IgnoreSynchronization=true statement solved it for me. Probably since my application is continuously polling for data so Requests never ends.

查看更多
登录 后发表回答