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(); }
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); }
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); }
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); }
public void TestSafari() { driver = new SafariDriver(); OpenPage <GoogleHomePage>("http://www.google.com/"); driver.Quit(); }
public void QuitDriver() { safari.Quit(); safari.Dispose(); }