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)
//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
I've solved this issue now. Angular.js and some other frameworks listen to the input event, which is only supported properly by HTML5 browsers.
If the browser is IE9 it will instead listen for the change event, otherwise it listens for input.
The jQueryControlEvents enum doesn't have a value for the input event, but you can trigger it like so:
2. Please record a Jing video demonstrating the entire process, so we can better understand what is happening.
3. Please provide us with a copy of your test and access to your application. If it is not possible to grant us access to your application, please take a Fiddler trace using FiddlerCap and send it to us in a zip file.