How to Invoke Selecting from a Combobox

834 Views Asked by At

I know how to use

    Invokemember("Click")

to simulate clicking in web browser. But I cant find the c# code for simulating the selection and then clicking an option from a combo box in a specific URL. The selection can be done by:

    webBrowser1.Document.GetElementById("id").SetAttribute("value","option");

but this only changes the text of the combo box in the web page. It does not update the page based on the selected option in the combo box. And again

    Invokemember("Click")

does not do anything in this case. Thanks in advance.

0

There are 0 best solutions below