Hello I have a case where I need help
What I am trying to do is to write BOT to control same web pages.
So I have an html:
<FORM method=post name=priceFormats action=/finsoft/cmsadmin/ChangePriceFormat.asp>
<LABEL for=priceFormatsDD>Choose price format:</LABEL>
<SELECT id=priceFormatsDD name=priceFormatsDD>
<OPTION selected value=Fractions>Fractions</OPTION>
<OPTION value=Decimals>Decimals</OPTION>
<OPTION value=American>American</OPTION>
</SELECT>
<INPUT value=Change type=submit>
</FORM>
On C# win32 application:
using SHDocVw;
using mshtml;
...
var selectelement = (IHTMLSelectElement)iHtmlEle;
...
selectelement.selectedIndex = i;
(selectelement as IHTMLElement3).FireEvent("onchange");
After working successfully on some sites, one site refused to change selected value of <select> element.
So i did a research and found out a JQuery behind!!
$(document).ready(function() {
....
$('#priceFormatsDD').bind("change", function() {
this.form.submit();
});
So my question is how I can call JQuey function from C# win32 application.
Thnx