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

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -