Пример #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();
            }
        }