HI ,
How do i make my program to wait until webpage finish loading before executing next statement.I tried Process::WaitForInputIdle(); but it doesnt wait . Any one has any idea.thanks
ProcessStartInfo pInfo = new ProcessStartInfo("firefox.exe");
pInfo.Arguments = "http://xxx.com";
Process p = Process.Start(pInfo);
p.WaitForInputIdle();
pInfo.Arguments = "http://yyy.com";
p = Process.Start(pInfo);
p.WaitForInputIdle();