コード例 #1
0
        public void SelectIndex(Func <IElement> element, int optionIndex)
        {
            var el = element() as Element;

            if (el.IsSelect)
            {
                var sl = new WatiNCore.SelectList(this.browser.DomContainer, el.AutomationElement.NativeElement);
                sl.Options[optionIndex].Select();
                fireOnChange(el.AutomationElement);
            }
        }
コード例 #2
0
        public void SelectValue(Func <IElement> element, string optionValue)
        {
            var el = element() as Element;

            if (el.IsSelect)
            {
                var sl = new WatiNCore.SelectList(this.browser.DomContainer, el.AutomationElement.NativeElement);
                sl.SelectByValue(optionValue);
                fireOnChange(el.AutomationElement);
            }
        }
コード例 #3
0
 public void SelectIndex(ElementProxy element, int optionIndex)
 {
     this.Act(CommandType.Action, () =>
     {
         var el = element.Element as Element;
         if (el.IsSelect)
         {
             var sl = new WatiNCore.SelectList(this.ActiveDomContainer, el.AutomationElement.NativeElement);
             sl.Options[optionIndex].Select();
             fireOnChange(el.AutomationElement);
         }
     });
 }
コード例 #4
0
 public void SelectValue(ElementProxy element, string optionValue)
 {
     this.Act(CommandType.Action, () =>
     {
         var el = element.Element as Element;
         if (el.IsSelect)
         {
             var sl = new WatiNCore.SelectList(this.ActiveDomContainer, el.AutomationElement.NativeElement);
             sl.SelectByValue(optionValue);
             fireOnChange(el.AutomationElement);
         }
     });
 }
コード例 #5
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);
                }
            }
        }
コード例 #6
0
        public void MultiSelectValue(Func <IElement> element, string[] optionValues)
        {
            var el = element() as Element;

            if (el.IsSelect && el.IsMultipleSelect)
            {
                var sl = new WatiNCore.SelectList(this.browser.DomContainer, el.AutomationElement.NativeElement);
                foreach (var val in optionValues)
                {
                    sl.SelectByValue(val);
                    fireOnChange(el.AutomationElement);
                }
            }
        }
コード例 #7
0
        public void MultiSelectIndex(Func <IElement> element, int[] optionIndices)
        {
            var el = element() as Element;

            if (el.IsSelect && el.IsMultipleSelect)
            {
                var sl = new WatiNCore.SelectList(this.browser.DomContainer, el.AutomationElement.NativeElement);
                foreach (var i in optionIndices)
                {
                    sl.Options[i].Select();
                    fireOnChange(el.AutomationElement);
                }
            }
        }
コード例 #8
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);
             }
         }
     });
 }
コード例 #9
0
 public void MultiSelectIndex(ElementProxy element, int[] optionIndices)
 {
     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 i in optionIndices)
             {
                 sl.Options[i].Select();
                 fireOnChange(el.AutomationElement);
             }
         }
     });
 }
コード例 #10
0
 public void MultiSelectValue(ElementProxy element, string[] optionValues)
 {
     this.Act(CommandType.Action, () =>
     {
         var el = element.Element as Element;
         if (el.IsSelect && el.IsMultipleSelect)
         {
             new WatiNCore.SelectList(this.browser.Frame("").DomContainer, el.AutomationElement.NativeElement);
             var sl = new WatiNCore.SelectList(this.ActiveDomContainer, el.AutomationElement.NativeElement);
             foreach (var val in optionValues)
             {
                 sl.SelectByValue(val);
                 fireOnChange(el.AutomationElement);
             }
         }
     });
 }
コード例 #11
0
 public void MultiSelectValue(Func<IElement> element, string[] optionValues)
 {
     var el = element() as Element;
     if (el.IsSelect && el.IsMultipleSelect)
     {
         var sl = new WatiNCore.SelectList(this.browser.DomContainer, el.AutomationElement.NativeElement);
         foreach (var val in optionValues)
         {
             sl.SelectByValue(val);
             fireOnChange(el.AutomationElement);
         }
     }
 }
コード例 #12
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);
         }
     }
 }
コード例 #13
0
 public void MultiSelectIndex(Func<IElement> element, int[] optionIndices)
 {
     var el = element() as Element;
     if (el.IsSelect && el.IsMultipleSelect)
     {
         var sl = new WatiNCore.SelectList(this.browser.DomContainer, el.AutomationElement.NativeElement);
         foreach (var i in optionIndices)
         {
             sl.Options[i].Select();
             fireOnChange(el.AutomationElement);
         }
     }
 }
コード例 #14
0
 public void MultiSelectValue(ElementProxy element, string[] optionValues)
 {
     this.Act(CommandType.Action, () =>
     {
         var el = element.Element as Element;
         if (el.IsSelect && el.IsMultipleSelect)
         {
             new WatiNCore.SelectList(this.browser.Frame("").DomContainer, el.AutomationElement.NativeElement);
             var sl = new WatiNCore.SelectList(this.ActiveDomContainer, el.AutomationElement.NativeElement);
             foreach (var val in optionValues)
             {
                 sl.SelectByValue(val);
                 fireOnChange(el.AutomationElement);
             }
         }
     });
 }
コード例 #15
0
 public void SelectIndex(ElementProxy element, int optionIndex)
 {
     this.Act(CommandType.Action, () =>
     {
         var el = element.Element as Element;
         if (el.IsSelect)
         {
             var sl = new WatiNCore.SelectList(this.ActiveDomContainer, el.AutomationElement.NativeElement);
             sl.Options[optionIndex].Select();
             fireOnChange(el.AutomationElement);
         }
     });
 }
コード例 #16
0
 public void SelectValue(ElementProxy element, string optionValue)
 {
     this.Act(CommandType.Action, () =>
     {
         var el = element.Element as Element;
         if (el.IsSelect)
         {
             var sl = new WatiNCore.SelectList(this.ActiveDomContainer, el.AutomationElement.NativeElement);
             sl.SelectByValue(optionValue);
             fireOnChange(el.AutomationElement);
         }
     });
 }
コード例 #17
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);
             }
         }
     });
 }
コード例 #18
0
 public void SelectIndex(Func<IElement> element, int optionIndex)
 {
     var el = element() as Element;
     if (el.IsSelect)
     {
         var sl = new WatiNCore.SelectList(this.browser.DomContainer, el.AutomationElement.NativeElement);
         sl.Options[optionIndex].Select();
         fireOnChange(el.AutomationElement);
     }
 }
コード例 #19
0
 public void SelectValue(Func<IElement> element, string optionValue)
 {
     var el = element() as Element;
     if (el.IsSelect)
     {
         var sl = new WatiNCore.SelectList(this.browser.DomContainer, el.AutomationElement.NativeElement);
         sl.SelectByValue(optionValue);
         fireOnChange(el.AutomationElement);
     }
 }
コード例 #20
0
 public void MultiSelectIndex(ElementProxy element, int[] optionIndices)
 {
     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 i in optionIndices)
             {
                 sl.Options[i].Select();
                 fireOnChange(el.AutomationElement);
             }
         }
     });
 }