public void InitDriver() { NSelene.Configuration.Timeout = this.Settings.NSelene.Timeout; IWebDriver webDriver; if (this.Settings.WebDriver.Local == "chrome") { new DriverManager().SetUpDriver(new ChromeConfig()); webDriver = new ChromeDriver(); } else { var options = new ChromeOptions() .AddGlobal("enableVNC", this.Settings.WebDriver.Remote.enableVNC) .AddGlobal("enableVideo", this.Settings.WebDriver.Remote.enableVideo); webDriver = new RemoteWebDriver( new Uri(this.Settings.WebDriver.Remote.uri), options); } Selene.SetWebDriver(webDriver); }
public void SetupTest() { Selene.SetWebDriver(new ChromeDriver()); Configuration.Timeout = 6; }
public void InitDriver() { new DriverManager().SetUpDriver(new ChromeConfig()); Selene.SetWebDriver(new ChromeDriver()); Selene.GoToUrl("https://www.tbcbankgroup.com/"); }
public void initDriver() { Selene.SetWebDriver(new ChromeDriver()); }