MisterNick
Registered Member
- Oct 22, 2014
- 80
- 61
Hello guys,
So, i'm trying to make a login software and when i try to enter the login information and click at "Submit" the software or idk what exactly, clean the 'username' field and the website automatically says "enter the username"
here's my code:
HtmlDocument doc = browser.Document;
HtmlElement elem1 = doc.GetElementById("pepName");
elem1.Focus();
elem1.InnerText = "pep";
var buttons = browser.Document.GetElementsByTagName("button");
foreach (HtmlElement button in buttons)
{
if (button.InnerText == "Submit")
{
button.InvokeMember("Click");
}
}
any suggestion about how to make that problem disappear? or should i use something else?
So, i'm trying to make a login software and when i try to enter the login information and click at "Submit" the software or idk what exactly, clean the 'username' field and the website automatically says "enter the username"
here's my code:
HtmlDocument doc = browser.Document;
HtmlElement elem1 = doc.GetElementById("pepName");
elem1.Focus();
elem1.InnerText = "pep";
var buttons = browser.Document.GetElementsByTagName("button");
foreach (HtmlElement button in buttons)
{
if (button.InnerText == "Submit")
{
button.InvokeMember("Click");
}
}
any suggestion about how to make that problem disappear? or should i use something else?