示例#1
0
        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);
        }
示例#2
0
        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);
        }