Пример #1
0
        public static bool TestHeaderTextLoad(FirefoxDriver browser, string webPage, string webPageTitleImage)
        {
            bool result = false;

            browser = new FirefoxDriver();
            try
            {
                result = SeleniumUtils.TestHeaderTextLoad(browser, webPage, webPageTitleImage);
            }
            finally
            {
                browser.Quit();
            }
            return(result);
        }
Пример #2
0
        public static bool TestHeaderTextLoad(ChromeDriver browser, string webPage, string webPageTitleImage)
        {
            bool result = false;

            browser = new ChromeDriver(@"C:\chromedriver_win32");
            try
            {
                result = SeleniumUtils.TestHeaderTextLoad(browser, webPage, webPageTitleImage);
            }
            finally
            {
                browser.Quit();
            }
            return(result);
        }