public static T GoToPage <T>(this UpWebDriver driver) where T : BasePage, new()
        {
            var page = new T {
                Driver = driver
            };

            page.Driver.Navigate().GoToUrl(page.Url);

            return(page);
        }
        public UpWebDriver CreateDriver()
        {
            IWebDriver driver = new ChromeDriver();

            Driver = new UpWebDriver(driver);

            Driver.Manage().Timeouts().PageLoad     = TimeSpan.FromSeconds(3);
            Driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5);
            Driver.Manage().Window.Maximize();
            Driver.NotWaitForAngularCalls = false;

            return(Driver);
        }
Ejemplo n.º 3
0
 public void DriverInit()
 {
     Driver = new BrowserFactory().CreateDriver();
 }
Ejemplo n.º 4
0
 public void DriverInit()
 {
     Driver = new DriverFactory().CreateChromeDriver();
 }