Esempio n. 1
0
        public static bool TestMenuColorsLoad(FirefoxDriver browser, string webPage, string color, string bgcolor, out string message)
        {
            bool result = false;

            browser = new FirefoxDriver();
            try
            {
                result = SeleniumUtils.TestMenuColorsLoad(browser, webPage, color, bgcolor, out message);
            }
            finally
            {
                browser.Quit();
            }
            return(result);
        }
Esempio n. 2
0
        public static bool TestMenuColorsLoad(ChromeDriver browser, string webPage, string color, string bgcolor, out string message)
        {
            bool result = false;

            browser = new ChromeDriver(@"C:\chromedriver_win32");
            try
            {
                result = SeleniumUtils.TestMenuColorsLoad(browser, webPage, color, bgcolor, out message);
            }
            finally
            {
                browser.Quit();
            }
            return(result);
        }