I’m debugging an html form. I need to POST the form with the default values (some of the field values are set with JavaScript).
How can I do this programmatically in C#? I want to have an action similar to pressing the “SUBMIT” button. I’m using a WebBrowser of my own.
Thanks.
You could do it via JavaScript in the HTML, or the browser developer tools:
Just put that in a script-tag at the bottom of your HTML, and it will post the form. Not really sure why you can’t just click the “submit” button, though..