public void LazyGetVisibleTriggerFind() { // Create the lazy element and use it LazyElement footer = new LazyElement(this.TestObject, By.CssSelector("FOOTER P"), "Footer"); footer.GetTheVisibleElement(); // Make sure get visible triggers a new find Assert.AreNotEqual(footer.CachedElement, footer.GetTheVisibleElement()); }
public void LazyGetsTriggerFind() { // Create the lazy element and use it LazyElement footer = new LazyElement(this.TestObject, By.CssSelector("FOOTER P"), "Footer"); IWebElement cacheFooter = footer.GetTheVisibleElement(); // Make sure the second event didn't trigger a new find Assert.AreEqual(cacheFooter, footer.CachedElement); }