protected void TakeScreenShotofPage(IWebElement element, string name) { JavaScriptExecutorHelper.ScrollElementAndClick(element); GenericHelper.WaitForLoadingMask(); GenericHelper.TakeSceenShot(name); BrowserHelper.GoBack(); GenericHelper.WaitForLoadingMask(); }
public void TestActions() { //NavigationHelper.NavigationToURL("localhost:5001/enter_bug.cgi"); ButtonHelper.ClickOnButton(By.LinkText("Open a New Account")); BrowserHelper.GoBack(); BrowserHelper.GoForward(); BrowserHelper.RefreshPage(); }
public void TestActions() { NavigationHelper.NavigateToUrl("https://www.udemy.com/bdd-with-selenium-webdriver-and-speckflow-using-c/"); ButtonHelper.ClickButton(By.XPath("//div[@id='related']/descendant::a[position()=1]")); BrowserHelper.GoBack(); BrowserHelper.Forward(); BrowserHelper.RefreshPage(); }
public void TakeFaqScrShot(string name) { JavaScriptExecutorHelper.ScrollElementAndClick(FAQ); GenericHelper.WaitForLoadingMask(); GenericHelper.TakeSceenShot(name); BrowserHelper.GoBack(); GenericHelper.WaitForLoadingMask(); }
public void TakeManageCustomerContentScrShot(string name) { Configuration.Click(); GenericHelper.WaitForElement(ManageCustomerContent); GenericHelper.TakeSceenShot(name); BrowserHelper.GoBack(); GenericHelper.WaitForLoadingMask(); }
public void TakeReportsScrShot(string name) { Reports.Click(); GenericHelper.WaitForLoadingMask(); GenericHelper.TakeSceenShot(name); BrowserHelper.GoBack(); GenericHelper.WaitForLoadingMask(); }
public void TestActions() { NavigationHelper.NavigateToUrl("https://www.udemy.com/course/bdd-with-selenium-webdriver-and-speckflow-using-c/"); ObjectRepository.Driver.Manage().Window.Maximize(); ButtonHelper.ClickButton(By.XPath("//button[@class='course-cta btn btn-lg btn-secondary btn-block']")); BrowserHelper.GoBack(); BrowserHelper.Forward(); BrowserHelper.RefreshPage(); }
public void TestActions() { NavigationHelper.NavigateToUrl("https://google.com"); BrowserHelper.BrowserMaximize(); TextBoxHelper.TypeInTextBox(By.XPath("//input[@title='Search']"), "My Name"); BrowserHelper.GoBack(); BrowserHelper.Forward(); BrowserHelper.RefreshPage(); }
public void TestAction() { NavigationHelper.NavigateToUrl("https://google.com"); //ObjectRepository.Driver.Manage().Window.Maximize(); //ObjectRepository.Driver.Navigate().Forward(); //ObjectRepository.Driver.Navigate().Back(); //ObjectRepository.Driver.Navigate().Refresh(); BrowserHelper.GoBack(); BrowserHelper.GoForward(); BrowserHelper.GoRefresh(); }
public void TestActions() { NavigationHelper.NavigateToUrl(ObjectRepository.Config.GetWebsite()); //BrowserHelper.BrowserMaximize(); //ObjectRepositiry.Driver.Manage().Window.Maximize(); ButtonHelper.ClickButton(By.Id("enter_bug")); BrowserHelper.GoBack(); //ObjectRepositiry.Driver.Navigate().Back(); BrowserHelper.Forward(); //ObjectRepositiry.Driver.Navigate().Forward(); BrowserHelper.Refresh(); //ObjectRepositiry.Driver.Navigate().Refresh(); }