Ejemplo n.º 1
0
        public void Before()
        {
            string        driverPath    = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            ChromeOptions chromeOptions = new ChromeOptions();

            chromeOptions.AddArguments("start-maximized");
            chromeOptions.AddArguments("test-type");
            chromeOptions.AddArguments("disable-popup-blocking");
            chromeOptions.AddArguments("ignore-certificate-errors");
            chromeOptions.AddArguments("disable-translate");
            chromeOptions.AddArguments("disable-automatic-password-saving");
            chromeOptions.AddArguments("allow-silent-push");
            chromeOptions.AddArguments("disable-infobars");

            webDriver = new ChromeDriver(driverPath, chromeOptions);

            gittiGidiyorPage = new GittiGidiyorPage(webDriver);
        }
 public GittiGidiyorTest()
 {
     Base.Setup();
     gittiGidiyorPage = new GittiGidiyorPage(Base.Driver);
 }
Ejemplo n.º 3
0
 public void Before()
 {
     gittiGidiyor = new GittiGidiyorPage(driver);
     driver.Navigate().GoToUrl("https://www.gittigidiyor.com/");
     TimeSpan.FromSeconds(50);
 }