Пример #1
0
 public void AppendText(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.AppendText(text);
     }
 }
Пример #2
0
        public void AppendText(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.AppendText(text);
            }
        }
Пример #3
0
 public void AppendText(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.AppendText(text);
         }
     });
 }
 public void AppendText(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.AppendText(text);
         }
     });
 }