2

When I run test in IE browser I get following error: Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.

I have tried increasing the allScriptsTimeout : 120000 and defaultTimeoutInterval : 120000 but it does not help.

here is my config file:

allScriptsTimeout : 120000,
capabilities : {
        'browserName' : 'internet explorer',
    },
    localSeleniumStandaloneOpts : {
          'jvmArgs' : ['-Dwebdriver.ie.driver=node_modules/protractor/node_modules/webdriver-manager/selenium/IEDriverServer3.3.0.exe']    
        },
jasmineNodeOpts : {
        defaultTimeoutInterval : 120000
    },
ssharma
  • 935
  • 2
  • 19
  • 43
  • Maybe try specifying the version of internet explorer? See the config posted here https://github.com/angular/protractor/issues/669 – Gunderson Apr 05 '17 at 20:43
  • Hi @sonia sharma, would it be possible to provide the snippet of your test case? i hope there would be some other reasons too for failure – krishnarajanr Apr 05 '17 at 21:16
  • I hope this would help you. http://stackoverflow.com/questions/22604644/jasmine-async-callback-was-not-invoked-within-timeout-specified-by-jasmine-defa – krishnarajanr Apr 05 '17 at 21:25
  • Is it an angular app? Does it happens only on IE? – Barney Apr 05 '17 at 21:38
  • yes, it happens only in IE on chrome and Firefox test runs is fine. – ssharma Apr 06 '17 at 14:54
  • `it('Logout ', function() { LogoutPage.adminIcon.click() browser.waitForAngular(); LogoutPage.logoutBtn.click(); expect(browser.getCurrentUrl()).toMatch('#/LogIn'); });` If I remove the expect, test does not timeout. this issue is only with IE for other browser I do not see timeout issue. – ssharma Apr 06 '17 at 15:27
  • Any suggestion on how this issue can be fixed ? – ssharma Apr 07 '17 at 15:32

0 Answers0