Hi. I'm having trouble triggering jquery events to satisfy our required field validators.
The following code works fine in IE9 but not in any other browser.
I get a validation error even though there is text in the textbox (screenshot attached, if it helps)
The following code works fine in IE9 but not in any other browser.
I get a validation error even though there is text in the textbox (screenshot attached, if it helps)
//Get the mandatory field: family name
var familyName = Client.Browser.Find.ByAttributes<HtmlInputText>(
"id=FamilyName"
);
//Enter some text
Client.Browser.Actions.SetText(familyName,
"Chrome and Firefox problems"
);
//Trigger a bunch of jquery events that indicate the control has changed
familyName.InvokeEvent(ArtOfTest.WebAii.Core.ScriptEventType.OnChange);
familyName.AsjQueryControl().InvokejQueryEvent(jQueryControl.jQueryControlEvents.keydown);
familyName.AsjQueryControl().InvokejQueryEvent(jQueryControl.jQueryControlEvents.keyup);
familyName.AsjQueryControl().InvokejQueryEvent(jQueryControl.jQueryControlEvents.keypress);
familyName.AsjQueryControl().InvokejQueryEvent(jQueryControl.jQueryControlEvents.change);