tried to write a program which logs me in automatically in a webbrowser in c#. This is the code i use at the moment for this purpose:
HtmlElementCollection pageTextElements = loginBrowser.Document.GetElementsByTagName("input");
foreach (HtmlElement element in pageTextElements)
{
if (element.Name.Equals("username"))
element.SetAttribute("value", this.UserName);
if (element.Name.Equals("password"))
element.SetAttribute("value", this.Password);
}
It fills in the Username, but not the password? ): Googled around but there are only a few people which started topic to which no one ever replied. /:
hopefully someone can help me. this is the source auf the password field:
<input type="password" value="" maxlength="50" size="25" name="password" class="bginput">