Ejemplo n.º 1
0
        public void ClearCacheTest()
        {
            Cookie cookie = new Cookie("key", "value");

            HomePage.WebDriver.Manage().Cookies.AddCookie(cookie);
            new Check().IsFalse(HomePage.WebDriver.Manage().Cookies.AllCookies.Count == 0);
            ContactFormPage.ClearCache();
            new Check().IsTrue(HomePage.WebDriver.Manage().Cookies.AllCookies.Count == 0);
        }