I'm writing a tool to get info from several websites, all require me to log in. My normal approach is to follow the requests and responses in Fiddler or alike, and follow that direct path.
However, that feels a bit strict. A minimal change in the website could break my code. So I'm looking for something like a UI-less browser that I can use the following way:
Browser.Load("https://sourceforge.net/account/login.php");
Browser.Document.ElementById("form_loginname").Value = "login";
Browser.Document.ElementById("form_pw").Value = "password";
(Browser.Document.ElementById("login") As WebButton).Click(); // the login button is named "login".
After this code finishes I'd like to see the page I would get in a regular browser.
Does something like I described exist?
EDIT - C# support is preferred