예제 #1
0
        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);
        }
예제 #2
0
 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/");
 }
예제 #4
0
 public void initDriver()
 {
     Selene.SetWebDriver(new ChromeDriver());
 }