Exemple #1
0
        /// <summary>
        /// Method to clear the cache of a browser
        /// will clear cache of IE or FireFox browser
        /// </summary>
        /// <param name="browser"></param>
        /// <param name="browsertype">IE or FireFox</param>
        public void ClearCache(Browser browser, string browsertype)
        {
            switch (browsertype)
            {
            case "IE":

                IE ie = (IE)browser;

                ie.ClearCache();
                ie.ClearCookies();
                break;

            case "FireFox":

                FireFox ff = (FireFox)browser;

                Console.Write("Unsure how to clear cache in FireFox");

                ff.Refresh();


                break;
            }
        }