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);
     }
 }
 public void AppendTextWithoutEvents(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.Value = text;
         this.browser.DomContainer.Eval(string.Format("if (typeof jQuery != 'undefined') {{ jQuery({0}).trigger('keyup'); }}", el.AutomationElement.GetJavascriptElementReference()));
     }
 }
Exemple #3
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);
            }
        }
Exemple #4
0
        public void AppendTextWithoutEvents(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.Value = text;
                this.browser.DomContainer.Eval(string.Format("if (typeof jQuery != 'undefined') {{ jQuery({0}).trigger('keyup'); }}", el.AutomationElement.GetJavascriptElementReference()));
            }
        }
Exemple #5
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);
         }
     });
 }
Exemple #6
0
 public void AppendTextWithoutEvents(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.Value = text;
             this.ActiveDomContainer.Eval(string.Format("if (typeof jQuery != 'undefined') {{ jQuery({0}).trigger('keyup'); }}", el.AutomationElement.GetJavascriptElementReference()));
         }
     });
 }
 public void EnterTextWithoutEvents(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.Value = text;
             this.ActiveDomContainer.Eval(string.Format("if (typeof jQuery != 'undefined') {{ jQuery({0}).trigger('keyup'); }}", el.AutomationElement.GetJavascriptElementReference()));
         }
     });
 }
 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);
         }
     });
 }