Exemple #1
0
        public void SelectText(Func <IElement> element, string optionText)
        {
            var el = element() as Element;

            if (el.IsSelect)
            {
                var sl = new WatiNCore.SelectList(this.browser.DomContainer, el.AutomationElement.NativeElement);
                sl.Select(optionText);
                fireOnChange(el.AutomationElement);
            }
        }
Exemple #2
0
 public void SelectText(ElementProxy element, string optionText)
 {
     this.Act(CommandType.Action, () =>
     {
         var el = element.Element as Element;
         if (el.IsSelect)
         {
             var sl = new WatiNCore.SelectList(this.ActiveDomContainer, el.AutomationElement.NativeElement);
             sl.Select(optionText);
             fireOnChange(el.AutomationElement);
         }
     });
 }
Exemple #3
0
        public void MultiSelectText(Func <IElement> element, string[] optionTextCollection)
        {
            var el = element() as Element;

            if (el.IsSelect && el.IsMultipleSelect)
            {
                var sl = new WatiNCore.SelectList(this.browser.DomContainer, el.AutomationElement.NativeElement);
                foreach (var text in optionTextCollection)
                {
                    sl.Select(text);
                    fireOnChange(el.AutomationElement);
                }
            }
        }
Exemple #4
0
 public void MultiSelectText(ElementProxy element, string[] optionTextCollection)
 {
     this.Act(CommandType.Action, () =>
     {
         var el = element.Element as Element;
         if (el.IsSelect && el.IsMultipleSelect)
         {
             var sl = new WatiNCore.SelectList(this.ActiveDomContainer, el.AutomationElement.NativeElement);
             foreach (var text in optionTextCollection)
             {
                 sl.Select(text);
                 fireOnChange(el.AutomationElement);
             }
         }
     });
 }
 public void SelectText(Func<IElement> element, string optionText)
 {
     var el = element() as Element;
     if (el.IsSelect)
     {
         var sl = new WatiNCore.SelectList(this.browser.DomContainer, el.AutomationElement.NativeElement);
         sl.Select(optionText);
         fireOnChange(el.AutomationElement);
     }
 }
 public void MultiSelectText(Func<IElement> element, string[] optionTextCollection)
 {
     var el = element() as Element;
     if (el.IsSelect && el.IsMultipleSelect)
     {
         var sl = new WatiNCore.SelectList(this.browser.DomContainer, el.AutomationElement.NativeElement);
         foreach (var text in optionTextCollection)
         {
             sl.Select(text);
             fireOnChange(el.AutomationElement);
         }
     }
 }
 public void SelectText(ElementProxy element, string optionText)
 {
     this.Act(CommandType.Action, () =>
     {
         var el = element.Element as Element;
         if (el.IsSelect)
         {
             var sl = new WatiNCore.SelectList(this.ActiveDomContainer, el.AutomationElement.NativeElement);
             sl.Select(optionText);
             fireOnChange(el.AutomationElement);
         }
     });
 }
 public void MultiSelectText(ElementProxy element, string[] optionTextCollection)
 {
     this.Act(CommandType.Action, () =>
     {
         var el = element.Element as Element;
         if (el.IsSelect && el.IsMultipleSelect)
         {
             var sl = new WatiNCore.SelectList(this.ActiveDomContainer, el.AutomationElement.NativeElement);
             foreach (var text in optionTextCollection)
             {
                 sl.Select(text);
                 fireOnChange(el.AutomationElement);
             }
         }
     });
 }