Пример #1
0
        /// <summary>
        /// Execute the selection
        /// </summary>
        /// <param name="actor"></param>
        /// <param name="ability"></param>
        protected override void ExecuteWhen(IActor actor, WebBrowser ability)
        {
            var element       = _target.ResolveFor(ability.Driver);
            var selectElement = new SelectElement(element);

            _selectStrategy.Select(selectElement, _value);
        }
Пример #2
0
        /// <summary>
        /// Execute the selection
        /// </summary>
        /// <param name="actor"></param>
        /// <param name="ability"></param>
        protected override void ExecuteWhen(IActor actor, WebBrowser ability)
        {
            if (_values.Length == 0)
            {
                return;
            }
            var element       = _target.ResolveFor(ability);
            var selectElement = new SelectElement(element);

            foreach (var value in _values)
            {
                _selectStrategy.Select(selectElement, value);
            }
        }