/// <summary> /// VerifyNationalVisionDocumentDownload verfies pdf downloads /// </summary> /// <param name="driver"></param> /// <param name="reporter"></param> public static void VerifyNationalVisionDocumentDownload(RemoteWebDriver driver, Iteration reporter) { reporter.Add(new Act("Click on About National Vision Documents")); Selenide.SwitchToFrame(driver, Util.GetLocator("AboutNationalVisionFrame")); Selenide.JS.Click(driver, Util.GetLocator("NVDocument_lnk")); Selenide.SwitchToWindow(driver); Selenide.VerifyVisible(driver, Util.GetLocator("VerifyAboutNVDocument_lnk")); }
public static void VerifyCommunicationDocumentDownload(RemoteWebDriver driver, Iteration reporter) { reporter.Add(new Act("Verify Documents link in Communications Page")); Selenide.SwitchToFrame(driver, Util.GetLocator("CommunicationFrame")); reporter.Add(new Act("Click Document")); Selenide.JS.Click(driver, Util.GetLocator("CommunicationDocument_lnk")); Selenide.SwitchToWindow(driver); reporter.Add(new Act("Verify Retail Calender Document")); }