Question on mshtml.
-
Hey, I'm building some automation tool of some web site. It has the following code:
<TD style="cursor:pointer" align="right" dir="ltr" onClick="javascript:function1(list of params);" id="12345">qwerty</TD>
. I'm using EtmlDocument HtmlElementCollection and HtmlElement and my HtmlElement variable has: OuterHtml =
<TD style="cursor:pointer" align="right" dir="ltr" onClick="javascript:function1(list of params);" id="12345">qwerty</TD>
OuterText = "qwerty" What should I do in order to generate mouse click and fire function1 and get the reply? Thanks.
-
Hey, I'm building some automation tool of some web site. It has the following code:
<TD style="cursor:pointer" align="right" dir="ltr" onClick="javascript:function1(list of params);" id="12345">qwerty</TD>
. I'm using EtmlDocument HtmlElementCollection and HtmlElement and my HtmlElement variable has: OuterHtml =
<TD style="cursor:pointer" align="right" dir="ltr" onClick="javascript:function1(list of params);" id="12345">qwerty</TD>
OuterText = "qwerty" What should I do in order to generate mouse click and fire function1 and get the reply? Thanks.
Do I get it right that you are writing some bot that clicks on web pages and processes the replies, pretending to be human?
-
Do I get it right that you are writing some bot that clicks on web pages and processes the replies, pretending to be human?
-
Well, I don't know. When I did this, none of the pages I targeted used javascripts for server interaction so it was easy to simulate clicking with HttpWebRequest/Response classes. In your case, I guess you'll have to emulate the javascript flow, as browsers do, to get the idea what the actual request should be. Unless someone else has something to say. H.