Code:WebBrowser1.Navigate "http://abc.com" Do While WebBrowser1.ReadyState <> READYSTATE_COMPLETE DoEvents Loop WebBrowser1.Document.All("username").Value = "admin" WebBrowser1.Document.All("clickbutton").clicked WebBrowser1.Navigate "http://xyz.com" Do While WebBrowser1.ReadyState <> READYSTATE_COMPLETE DoEvents Loop WebBrowser1.Document.All("username").Value = "admin" WebBrowser1.Document.All("clickbutton").clicked
I want to login in two sites on a single command button click event and the problem is that as soon this command run
WebBrowser1.Document.All("clickbutton").clicked
it execute next line either the previous line is succesffully executed or not......




Reply With Quote