public void TestCheckReportUnderGeneral() { string parentWindowHandle = WebDriverUtil.GetParentWindowHandle(); RActions.ClickReporting(); RActions.ClickOnReportByName(); validation.ValidateScreenByUrl("https://cornseed-nonprod-as.azurewebsites.net/TestWebReview/Secure/Reporting/ReportPage.aspx"); validation.ValidateTitleOfAPage("Syngenta Cornseed Reporting"); validation.ValidateTextIsPresent("Ethanol Production Facility Claim Data", ReportTreePage.EthanolReport); WebDriverUtil.CloseCurrent(); WebDriverUtil.SwitchToParentWindow(parentWindowHandle); }
public void GoToHomeWithWindowHandle(string parentWindowHandle) { WebDriverUtil.SwitchToParentWindow(parentWindowHandle); elementUtils.ClickElement(HomePage.Home); }
public void ClickBack(string parentWindowHandle) { WebDriverUtil.SwitchToParentWindow(parentWindowHandle); elementUtils.ClickElement(DocumentIntakeDetailsPage.Back); }