예제 #1
0
 public static FinancePage NavigateTo(IWebDriver webDriver)
 {
     driver = webDriver;
     driver.Navigate().GoToUrl("http://www.seleniumhq.org/");
     var financePage = new FinancePage();
     PageFactory.InitElements(driver, financePage);
     return financePage;
 }
예제 #2
0
        public static FinancePage NavigateTo(IWebDriver webDriver)
        {
            driver = webDriver;
            driver.Navigate().GoToUrl("http://finance.i.ua");
            var financePage = new FinancePage();

            PageFactory.InitElements(driver, financePage);
            return(financePage);
        }
 public void GivenIHaveOpenedTheFinancePage()
 {
     financePage = FinancePage.NavigateTo(driver);
     driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10));
     driver.Navigate().GoToUrl("http://www.seleniumhq.org/");
 }