Protractor- switch from non- angular to angular



  • Login page is non- angular. So I set browser.ignoreSynchronization = true; Then after passing the login screen, I have set browser.ignoreSynchronization = false. Also, I have used browser.refresh(). While execution, I see all the steps executed, but shows error message as timeout after 11 seconds.



  • You can use browser.ignoreSynchronization=true entirely for angular/non-angular pages and use your own wait mechanism using ExpectedConditions to handle elements.

    Either way is using driver methods directly as below, so it won't wait for $http and $timeout

    expect(browser.driver.findElement(by.css('.msgtext')).getText().toBe('expexted text')
    

    Please let me know if you need more help and upvote this answer if you find it helpful



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2