Exemple #1
0
 protected internal virtual ElementFound FindElement()
 {
     if (element == null || element.Stale(ElementFinder.Options))
     {
         element = disambiguationStrategy.ResolveQuery(ElementFinder);
     }
     return(element);
 }
Exemple #2
0
 protected internal ElementFound FindElement()
 {
     if (element == null || element.Stale(options))
     {
         element = elementFinder.Find();
     }
     return(element);
 }
Exemple #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);
        }
        public override ElementFound Now()
        {
            if (_elementFound.Stale(options))
            {
                throw new MissingHtmlException(string.Format("Snapshot element scope has become stale. {0}", _elementFound));
            }

            return(_elementFound);
        }