public void LazyElementFindElementsGetVisible()
        {
            LazyElement lazyRoot       = new LazyElement(this.TestObject, By.CssSelector("#ItemsToAutomate"));
            IWebElement secondTable    = lazyRoot.FindElements(By.CssSelector("TABLE"))[1];
            IWebElement getSecondTable = ((LazyElement)secondTable).GetRawVisibleElement();

            Assert.AreEqual(secondTable.Text, getSecondTable.Text);
        }
        public void LazyElementFindElementsStackedWithStale()
        {
            LazyElement lazyRoot        = new LazyElement(this.TestObject, By.CssSelector("#ItemsToAutomate"));
            IWebElement secondTable     = lazyRoot.FindElements(By.CssSelector("TABLE"))[1];
            IWebElement lastTableHeader = ((LazyElement)secondTable).FindElements(By.CssSelector("THEAD TH"))[4];

            this.WebDriver.Navigate().GoToUrl(SeleniumConfig.GetWebSiteBase());
            this.WebDriver.Navigate().GoToUrl(SeleniumConfig.GetWebSiteBase() + "Automation");

            Assert.AreEqual("Color", lastTableHeader.Text);
        }