public void VerifyElementCacheClearsWhenStale()
        {
            driver.Navigate().GoToUrl("https://the-internet.herokuapp.com/add_remove_elements/");

            AddElementButton.Click();
            driver.Navigate().Refresh();
            var ele = WebElementCache.GetCachedElement(AddElementButton.ToString());

            Assert.IsNull(ele);
        }
        public void SaveElementToCache()
        {
            Element button = new Element("button[onclick*=addElement]");

            driver.Navigate().GoToUrl("https://the-internet.herokuapp.com/add_remove_elements/");

            button.Click();

            WebElementCache.SaveElementToCache(button.WrappedElement, button.ToString());

            var ele = WebElementCache.GetCachedElement(button.ToString());

            Assert.AreEqual(button.WrappedElement, ele);
        }