public void WhenIFillTheFormAndCheckboxes(Table formTable)
        {
            GetDriver.implicitWait(10);
            Dictionary <string, string> form = TableExtension.ToDictionary(formTable);

            Form.GetForm.FillForm(form);
        }
Exemple #2
0
        /// <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();
 }
Exemple #5
0
 public static void Refresh() => GetDriver.Navigate().Refresh();
Exemple #6
0
 public static void Forward() => GetDriver.Navigate().Forward();
Exemple #7
0
 public static void Back() => GetDriver.Navigate().Back();
Exemple #8
0
 public static void GoTo(string url) => GetDriver.Navigate().GoToUrl(url);
Exemple #9
0
 /// <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();
Exemple #10
0
 /// <summary>
 /// This method is closing browser with all tabs.
 /// </summary>
 public static void CloseBrowser()
 {
     GetDriver.Quit();
     GetDriver.Dispose();
     CloseSession();
 }
Exemple #11
0
 public static void Close()
 {
     GetDriver.Quit();
 }
 public static void TearDown()
 {
     GetDriver.quitDrivers();
 }
Exemple #13
0
 public void openPage()
 {
     GetDriver.Navigate().GoToUrl(URL);
 }
Exemple #14
0
 /// <summary>
 /// Navigate To URL
 /// </summary>
 /// <param name="url">URL to Navigate</param>
 public void GoTo(string url)
 {
     GetDriver.Navigate().GoToUrl(url);
 }