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); }
public void DriverInit() { Driver = new BrowserFactory().CreateDriver(); }
public void DriverInit() { Driver = new DriverFactory().CreateChromeDriver(); }