2017-09-20 2 views
3

browser.ignoreSynchronization이란 무엇입니까?각도기의 waitForAngularEnabled와 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 은 모두 동일 보인다. 다른 사람이 아니라 하나가 성취 할 수있는 구체적인 것이 있습니까?

답변

3

그들은 정확히 동일합니다. source codeignoreSynchronization을 보면 실제로 waitForAngularEnabled가 호출됩니다. 주목할 점은 ignoreSynchronization이 더 이상 사용되지 않으며 더 이상 사용할 수 없게된다는 것입니다. 그들은 waitForAngularEnabled을 주요 속성으로 전환 중입니다.

그들이하는 일은 answered here입니다.

관련 문제