I have a select list where a change event has been bound to the element using jQuery. Something like this:
$("#someId").change(function() {..});
When someone chooses a new option in the select list, another part of the UI will change accordingly. Now this works fine when I use the mouse and click things, however, when using Watij to write my tests I need the jQuery change event to fire which it isn't doing.
The Watij test will correctly choose the select option required but the actual event does not get triggered. I have tried calling fireevent("change");
and fireevent("onchange");
to no avail. I have also tried ie.sendKeys("{ENTER}");
and ie.sendKeys("{TAB}");
which also does not seem to do the trick.
Any ideas?