Reputation: 23
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();
});
}
Upvotes: 0
Views: 69
Reputation: 941
I would prefer to wait for Download Dialog to be visible :
var EC = protractor.ExpectedConditions;
browser.wait(EC.visibilityOf(DownloadDialog), 7000, "Download Dialog Not displayed - Timing Out");
Upvotes: 1