Example #1
0
        public void EnterText(Func <IElement> element, string text)
        {
            var el = element() as Element;

            if (el.IsText)
            {
                var txt = new WatiNCore.TextField(this.browser.DomContainer, el.AutomationElement.NativeElement);
                txt.TypeText(text);
            }
        }
Example #2
0
 public void EnterText(ElementProxy element, string text)
 {
     this.Act(CommandType.Action, () =>
     {
         var el = element.Element as Element;
         if (el.IsText)
         {
             var txt = new WatiNCore.TextField(this.ActiveDomContainer, el.AutomationElement.NativeElement);
             txt.TypeText(text);
         }
     });
 }
 public void EnterText(Func<IElement> element, string text)
 {
     var el = element() as Element;
     if (el.IsText)
     {
         var txt = new WatiNCore.TextField(this.browser.DomContainer, el.AutomationElement.NativeElement);
         txt.TypeText(text);
     }
 }
 public void EnterText(ElementProxy element, string text)
 {
     this.Act(CommandType.Action, () =>
     {
         var el = element.Element as Element;
         if (el.IsText)
         {
             var txt = new WatiNCore.TextField(this.ActiveDomContainer, el.AutomationElement.NativeElement);
             txt.TypeText(text);
         }
     });
 }