2 回答

TA貢獻(xiàn)1810條經(jīng)驗(yàn) 獲得超4個(gè)贊
此設(shè)置控制量角器是否應(yīng)等待頁(yè)面上的角度。它沒(méi)有正確記錄,但是這里是代碼中的文檔字符串:
/**
* 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}
*/
換句話說(shuō),如果要針對(duì)非角度站點(diǎn)進(jìn)行測(cè)試,請(qǐng)將ignoreSynchronization設(shè)置設(shè)置為true。作為一個(gè)真實(shí)的例子,請(qǐng)看我從角度頁(yè)面打開(kāi)非角度頁(yè)面時(shí)遇到的挑戰(zhàn)之一:?jiǎn)螕糁蟠蜷_(kāi)非角度頁(yè)面。
添加回答
舉報(bào)