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/");
 }