Example #1
0
        public override void Act()
        {
            var select = disambiguationStrategy.ResolveQuery(new SelectFinder(Driver, locator, scope, options));
            var option = disambiguationStrategy.ResolveQuery(new OptionFinder(Driver, optionToSelect, new SnapshotElementScope(select, scope, options), options));

            Driver.Click(option);
        }
Example #2
0
        private SnapshotElementScope FindSelectElement()
        {
            if (_fromOptions == null)
            {
                _fromOptions = _options;
            }
            var selectElementFound = _disambiguationStrategy.ResolveQuery(new SelectFinder(Driver, _locator, Scope, _fromOptions));

            return(new SnapshotElementScope(selectElementFound, Scope, _fromOptions));
        }
Example #3
0
        public override void Act()
        {
            var element = disambiguationStrategy.ResolveQuery(elementFinder);

            waiter.Wait(waitBeforeClick);
            Driver.Click(element);
        }
 protected internal virtual Element FindElement()
 {
     if (element == null || Stale)
     {
         element = DisambiguationStrategy.ResolveQuery(ElementFinder);
     }
     return(element);
 }
Example #5
0
 protected internal virtual ElementFound FindElement()
 {
     if (element == null || element.Stale(ElementFinder.Options))
     {
         element = disambiguationStrategy.ResolveQuery(ElementFinder);
     }
     return(element);
 }
Example #6
0
 protected static ElementFound FindSingle(ElementFinder finder)
 {
     return(DisambiguationStrategy.ResolveQuery(finder));
 }
Example #7
0
        private SnapshotElementScope FindSelectElement()
        {
            var selectElementFound = disambiguationStrategy.ResolveQuery(new SelectFinder(Driver, locator, Scope, options));

            return(new SnapshotElementScope(selectElementFound, Scope, options));
        }
Example #8
0
 internal Element Find()
 {
     return(DisambiguationStrategy.ResolveQuery(finder));
 }