public static bool TestLoad(FirefoxDriver browser, string webPage) { bool result = false; browser = new FirefoxDriver(); try { result = SeleniumUtils.TestLoad(browser, webPage); } finally { browser.Quit(); } return(result); }
public static bool TestLoad(ChromeDriver browser, string webPage) { bool result = false; browser = new ChromeDriver(@"C:\chromedriver_win32"); try { result = SeleniumUtils.TestLoad(browser, webPage); } finally { browser.Quit(); } return(result); }