0
var inputElements = webBrowser1.Document.GetElementsByTagName("input");
foreach (HtmlElement i in inputElements){
if(i.GetAttribute("name").Equals("user")){
i.InnerText = "Teste";
}
if(i.GetAttribute("name").Equals("password")){
i.Focus();
i.InnerText = "1234";
}
}
var buttonElements = webBrowser1.Document.GetElementsByTagName("class");
foreach (HtmlElement b in inputElements){
if(b.GetAttribute("href").Equals("javascript:submitForm()")){
SendKeys.SendWait("click");
}
}
//Ex HTML of the page:
<a title="Clique aqui para fazer o login" href="javascript:submitFunction()" </a>
If anyone can help me...
It worked out Thank you.
– user108649