What is the difference between waitForAngularEnabled and browser.ignore Sync in protractor?

What is browser.ignoreSynchronization?

/**
   * If true, Protractor will not attempt to synchronize with the page before
   * performing actions. This can be harmful because Protractor will not wait
   * until $timeouts and $http calls have been processed, which can cause
   * tests to become flaky. This should be used only when necessary, such as
   * when a page continuously polls an API using $timeout.
   *
   * @type {boolean}
   */

& waitForAngularEnabled Both look the same. Is there any specific thing that can be achieved by one and not the other?

+4
source share
1 answer

They are exactly the same if you look at the source code ignoreSynchronization that actually calls waitForAngularEnabled. It should be noted that it is ignoreSynchronizationoutdated and ultimately will no longer be available. They switch to waitForAngularEnabledas the main property.

As for what they do, he answered here in detail.

+3
source

Source: https://habr.com/ru/post/1686036/


All Articles