c# - Pass javascript "this" parameter when calling javascript function via web-browser control -
i'm trying run simple javascript function via c# application using web-browser, issue javascript function uses "this" parameter
onclick="submit(this);"
and full html button code:
<input type="submit" name="nextbutton" value="done" onclick="onsubmit(this);" id="nextbutton" class="btn">
how can use function via c# is, understanding, maintained executing javascript. possible? if so, how can go doing it?
here line i'm using:
browser.document.invokescript("onsubmit", new string[] { "#nextbutton" });
thanks everyone!
Comments
Post a Comment