I'm stuck on triggering onchange JavaScript events programmatically. Basically no event is firing even though the value of the select is being set correctly. This is on Windows 7 x64, IE9 (32-bit) with Ranorex add-on installed.
I've used the following code to make the selection in a <select> element:
public static bool SelectComboItem(string value, SelectTag selectTag) { var tags = selectTag.FindDescendants<OptionTag>(); foreach(OptionTag tag in tags) { if (string.Compare(value, tag.Value, StringComparison.InvariantCultureIgnoreCase) != 0) continue; tag.EnsureVisible(); tag.Selected = true; tag.PerformClick(); return true; } return false; }This is being tested against a simple HTML page which writes a message to a div when the select onchange is triggered. No event is being triggered at all but the value is set correctly and can be validated after it is set. This works perfectly fine if I do it manually but it is resisting any form of automation.
Any help appreciated.