在运行IE作为外部进程时等待页面完成加载

时间:2017-01-09 22:30:27

标签: c# winforms internet-explorer process

我有一个代码可以从我的应用程序在IE中打开一个网页。我的应用程序基本上是一个启动器。

 var process = new Process
        {
            StartInfo = new ProcessStartInfo
            {
                FileName = @"IExplore.exe",
                Arguments = "-k http://google.com"
            }
        };
        process.Start();

我需要知道IE何时完成加载网页。我尝试过像WaitForInputIdle这样的东西,但它对我不起作用。

0 个答案:

没有答案