示例#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);
            }
        }