I have a web browser control in a C# app that upon page completed it inserts a script into the document.
The script is to change a combo box value for automation.
The thing is when the script is executed the normal behavour of the original site is not working. It is meant to load some results via AJAX.
Though if I click and change the combo box using the mouse it does work.
The script is like this
$("#orderBySelect").val('prfs'); $("#orderBySelect").click();
Though I have tried the change event also as well as a combination of other events including the click event on the selected option.
Any idea why this would be?