Esempio n. 1
0
        public void TestSafari()
        {
            IWebDriver driver = null;

            try
            {
                SafariOptions options = new SafariOptions();

                driver     = new SafariDriver();
                driver.Url = "http://www.softpost.org";
                driver.Manage().Window.Maximize();
                driver.Navigate();
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception ....*********" + e.ToString());
            }

            finally
            {
                Thread.Sleep(2000);
                driver.Close();
                driver.Quit();
            }
        }
        public void SafariSession()
        {
            var options = new SafariOptions();
            var driver  = new SafariDriver(options);

            driver.Quit();
        }
Esempio n. 3
0
        public static bool TestEmptyLogin(SafariDriver browser, string webPage, out string message)
        {
            bool result = false;

            browser = new SafariDriver();
            try
            {
                result = SeleniumUtils.TestEmptyLogin(browser, webPage, out message);
            }
            finally
            {
                browser.Quit();
            }
            return(result);
        }
Esempio n. 4
0
        public static bool TestMenuColorsLoad(SafariDriver browser, string webPage, string color, string bgcolor, out string message)
        {
            bool result = false;

            browser = new SafariDriver();
            try
            {
                result = SeleniumUtils.TestMenuColorsLoad(browser, webPage, color, bgcolor, out message);
            }
            finally
            {
                browser.Quit();
            }
            return(result);
        }
Esempio n. 5
0
        public static bool TestHeaderTextLoad(SafariDriver browser, string webPage, string webPageTitleImage)
        {
            bool result = false;

            browser = new SafariDriver();
            try
            {
                result = SeleniumUtils.TestHeaderTextLoad(browser, webPage, webPageTitleImage);
            }
            finally
            {
                browser.Quit();
            }
            return(result);
        }
Esempio n. 6
0
 public void TestSafari()
 {
     driver = new SafariDriver();
     OpenPage <GoogleHomePage>("http://www.google.com/");
     driver.Quit();
 }
Esempio n. 7
0
 public void QuitDriver()
 {
     safari.Quit();
     safari.Dispose();
 }