Ejemplo n.º 1
0
 protected internal virtual ElementFound FindElement()
 {
     if (element == null || element.Stale(ElementFinder.Options))
     {
         element = disambiguationStrategy.ResolveQuery(ElementFinder);
     }
     return(element);
 }
Ejemplo n.º 2
0
 protected internal ElementFound FindElement()
 {
     if (element == null || element.Stale(options))
     {
         element = elementFinder.Find();
     }
     return(element);
 }
Ejemplo n.º 3
0
        protected internal override ElementFound FindElement()
        {
            if (elementFound.Stale(options))
            {
                throw new MissingHtmlException(string.Format("Snapshot element scope has become stale. {0}", elementFound));
            }

            return(elementFound);
        }
Ejemplo n.º 4
0
        public override ElementFound Now()
        {
            if (_elementFound.Stale(options))
            {
                throw new MissingHtmlException(string.Format("Snapshot element scope has become stale. {0}", _elementFound));
            }

            return(_elementFound);
        }