I am trying to figure out how to click a button on a web page programmatically.
Specifically, I have a WinForm with a WebBrowser control. Once it navigates to the targe
var btn = document.getElementById(btnName); if (btn) btn.click();