public void WhenIFillTheFormAndCheckboxes(Table formTable) { GetDriver.implicitWait(10); Dictionary <string, string> form = TableExtension.ToDictionary(formTable); Form.GetForm.FillForm(form); }
/// <summary> /// Close web driver, quit and dispose. /// </summary> public void Close() { if (GetDriver != null) { System.Threading.Thread.Sleep(TimeSpan.FromSeconds(1)); GetDriver.Close(); GetDriver.Quit(); GetDriver.Dispose(); System.Threading.Thread.Sleep(TimeSpan.FromSeconds(1)); GetDriver = null; } System.Threading.Thread.Sleep(TimeSpan.FromSeconds(1)); }
public void SetUpTest() { if (ScenarioContext.Current.ScenarioInfo.Tags.Contains("chrome")) { driver = GetDriver.getWebDriver("chrome"); } else if (ScenarioContext.Current.ScenarioInfo.Tags.Contains("firefox")) { driver = GetDriver.getWebDriver("firefox"); } driver.Manage().Window.Maximize(); driver.Url = urlTest; driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30); extentScenario = extentFeature.CreateNode(ScenarioContext.Current.ScenarioInfo.Title); }
public void GivenICloseEmergedSign_InPopup() { GetDriver.implicitWait(10); BBCNewsPage.GetBBCNewsPage.ClickPopupSignInExitButton(); }
public static void Refresh() => GetDriver.Navigate().Refresh();
public static void Forward() => GetDriver.Navigate().Forward();
public static void Back() => GetDriver.Navigate().Back();
public static void GoTo(string url) => GetDriver.Navigate().GoToUrl(url);
/// <summary> /// This method will close current tab in browser, and will close browser if there is only one tab. /// </summary> public static void CloseTab() => GetDriver.Close();
/// <summary> /// This method is closing browser with all tabs. /// </summary> public static void CloseBrowser() { GetDriver.Quit(); GetDriver.Dispose(); CloseSession(); }
public static void Close() { GetDriver.Quit(); }
public static void TearDown() { GetDriver.quitDrivers(); }
public void openPage() { GetDriver.Navigate().GoToUrl(URL); }
/// <summary> /// Navigate To URL /// </summary> /// <param name="url">URL to Navigate</param> public void GoTo(string url) { GetDriver.Navigate().GoToUrl(url); }