1
I am trying to access a URL and send login and password for authentication and then browse between pages?
After I log in to the page http://indigo.rafson.com.br, I’m not getting switched to another page that would be http://indigo.rafson.com.br/01.php
webBrowser1.ScriptErrorsSuppressed = true;
webBrowser1.Navigate(Url);
while (webBrowser1.ReadyState != WebBrowserReadyState.Complete && webBrowser1.Document == null)
{
Application.DoEvents();
}
HtmlDocument doc = webBrowser1.Document;
HtmlElement login = doc.GetElementById("login");
HtmlElement password = doc.GetElementById("Password");
HtmlElement submit = doc.GetElementById("submit");
login.SetAttribute("value", Login);
password.SetAttribute("value", Senha);
submit.InvokeMember("click");
webBrowser1.Navigate("http://indigo.rafson.com.br/01.php");
while (webBrowser1.ReadyState != WebBrowserReadyState.Complete && webBrowser1.Document == null)
{
Application.DoEvents();
}
Why can’t you change? What happens when you try to change?
– CypherPotato