public void TCID4_HTMLReportViwerButton() { ReportViewerPage reportPage = new ReportViewerPage(driver); reportPage.GoTo(); reportPage.HTMLReportViwerButton(); var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(15)); wait.Until(ExpectedConditions.ElementExists(By.XPath("//*[contains(text(),'The HTML5 Report Viewer provides: ')]"))); Assert.IsTrue(reportPage.IsLoaded, "The HTMLReportViwer extension did not open successfully."); }
public void TCID8_RefreshButton() { ReportViewerPage reportPage = new ReportViewerPage(driver); reportPage.GoTo(); reportPage.HTMLReportViwerButton(); var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(15)); wait.Until(ExpectedConditions.ElementExists(By.XPath("//*[contains(text(),'The HTML5 Report Viewer provides: ')]"))); Assert.IsTrue(reportPage.IsLoaded, "The HTMLReportViwer extension did not open successfully."); reportPage.Refresh(); Assert.IsTrue(wait.Until(ExpectedConditions.ElementIsVisible(By.XPath("//*[@style='height: 297px; width: 737px;']"))).Displayed); }