/// <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")); }
/// <summary> /// VerifyCostCenterNumber method verifies the CC Number in Search Results Page /// </summary> /// <param name="driver"></param> /// <param name="reporter"></param> /// <param name="costcenternumber"></param> public static void VerifyCostCenterNumber(RemoteWebDriver driver, Iteration reporter, string costcenternumber) { reporter.Add(new Act(String.Format("Verify {0} cost ceter number is visible", costcenternumber))); Selenide.VerifyVisible(driver, Locator.Get(LocatorType.XPath, string.Format(@"//tr[@class='GridRow_altN_selN_hovN']/td[2]/a[text()='{0}']", costcenternumber))); }
/// <summary> /// VerifyPortalLogo verifies portal logo availability at home page /// </summary> /// <param name="Driver">Initialized RemoteWebDriver instance</param> /// <param name="reporter">Initialized report instance</param> public static void VerifyPortalLogo(RemoteWebDriver driver, Iteration reporter, string screenshotName, string saveTo) { Selenide.VerifyVisible(driver, Util.GetLocator("Portal_Logo")); //CommonPage.takeScreenshot(driver, screenshotName, saveTo, reporter); }