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())); } }
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())); } }
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 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); } }); }