简体   繁体   中英

In Protractor how can I wait until pop appears without depending on timeout?

Is there a wait for protractor to wait for the download popup to appear when the report is ready to download without relying on the timeout because some reports might take longer than others?

browser.driver.wait(
        this.isVisible(locator)
        , 35000, locator_css + ' took too long to be on the DOM.')
        .then(function() {
            return locator.click();
        });
}

我希望等待“下载对话框”可见:

var EC = protractor.ExpectedConditions; browser.wait(EC.visibilityOf(DownloadDialog), 7000, "Download Dialog Not displayed - Timing Out");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM