Is it possible to set values for inputs inside my WebBrowser control?

browser c# html-agility-pack

Question

I have a web page loaded into a WebBrowser object. What I want to do is access the elements on that page to input data. For example, enter username and password and submit the form.

How is this possible? Any ideas?

Could I use HTMLAgilityPack to access the elements and set their values?

1
1
6/17/2010 6:43:13 PM

Popular Answer

Check out this documentation example: http://msdn.microsoft.com/en-us/library/system.windows.forms.htmldocument.aspx

Through the web browser control, there is a Document property of type HtmlDocument, which gives you some ability to affect the page. I personally don't know if it can do everything you want, but this would be a good starting point.

HTH.

2
6/17/2010 6:46:36 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow