예제 #1
0
        public void DriverPath()
        {
            if (typeof(TPage) == typeof(OperaDriver))
            {
                OperaOptions opera = new OperaOptions();
                opera.BinaryLocation = @"C:\Program Files\Opera\launcher.exe";

                driver = new OperaDriver(opera);
            }
            else if (typeof(TPage) == typeof(YandexDriver))
            {
                ChromeOptions yandex = new ChromeOptions();
                yandex.BinaryLocation = @"C:\Users\Kurkulya\AppData\Local\Yandex\YandexBrowser\Application\browser.exe";
                driver = new ChromeDriver(yandex);
            }
            else
            {
                driver = new TPage();
            }
            obj = new POM(driver);
        }
예제 #2
0
 public void TestUp()
 {
     obj = new POM(driver);
     driver.Navigate().GoToUrl("file:///E:/C%23%201708/Calcs/With%20Buttons/CalcJSWithButtons/CalcJSwithButtons.html");
 }
예제 #3
0
 public void DriverPath()
 {
     driver = new TPage();
     obj    = new POM(driver);
 }