views:

1347

answers:

1

I navigated to a website with a form that has no submit button but does have form. I would like to submit this form. How to do this using C# and WebBrowser control?

+1  A: 

Try this (or something like it):

HtmlElements elements = this.webBrowserControl.GetElementsByTagName("Form");  

foreach(HtmlElement currentElement in elements)
{
currentElement.InvokeMember("submit");
}
Cam Soper