How can Protractor be made to wait for the download popup to appear when the report is ready for downloading, without solely relying on a timeout value since some reports may 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();
});
}