Skip to content Skip to sidebar Skip to footer

C# Protractor Angularjs Iedriverserver Click() Exception "timed Out Waiting For Page To Load"

I'm using Protractor to test our AngularJS application (with both Chrome and IE drivers). The IEDriverServer works OK on most pages, except for this one page where pretty much all

Solution 1:

I have had this issue and only solution I found was to make SignalR work with WebSockets, which requires IIS8. In my case SignalR was working with Long Polling, which keep a connection open for a long time. Even if you increase the timeout this will make your tests unacceptably slow. See: SignalR w/ Web Sockets

Solution 2:

In between your click events, if page is refreshing. Then please check for browser.manage().timeouts().pageLoadTimeout(<timeout in milliseconds>) in your conf.js file.

In C#, there are option for pageLoadTimeout() in below manner:

seleniumDriver.manage().timeouts()
      .pageLoadTimeout(xx, TimeUnit.SECONDS)
      .implicitlyWait(xx, TimeUnit.SECONDS)
      .setScriptTimeout(xx, TimeUnit.SECONDS);

I think you need to look for pageLoadTimeout(), because protractor internally will only wait for the specified time for the page to load. After that it will throw timeout waiting for page to load.

Post a Comment for "C# Protractor Angularjs Iedriverserver Click() Exception "timed Out Waiting For Page To Load""