kadel iald

kadel iald

  • NA
  • 5
  • 2.6k

wait command

Jun 5 2012 4:46 AM
Hello,

how can I make a wait command after: webBrowser1.Document.GetElementById("id").InvokeMember("Click");
because this one :

do
{
Application.DoEvents();
}
while (webBrowser1.ReadyState != WebBrowserReadyState.Complete);


and

System.Threading.Thread.Sleep(5000);

doesn't work properly..

Thread.Sleep freezes whole application, it doesn't wait 5 seconds.
i need a command to wait 5-10 seconds after login button is clicked...

any idea?

ty

Answers (4)