Internet explorer C#-等待IE加载?
我正在使用以下代码在web浏览器中打开URL:Internet explorer C#-等待IE加载?,internet-explorer,c#-4.0,Internet Explorer,C# 4.0,我正在使用以下代码在web浏览器中打开URL: Process p = new Process(); p.StartInfo.FileName = GetDefaultBrowserPath(); //gets path to default browser from the registry p.StartInfo.Arguments = "htp://www.google.com"; p.Start(); 有人能告诉我如何等
Process p = new Process();
p.StartInfo.FileName = GetDefaultBrowserPath(); //gets path to default browser from the registry
p.StartInfo.Arguments = "htp://www.google.com";
p.Start();
有人能告诉我如何等待IE加载吗?这是正确的方法吗
谢谢,
吉米就这么做吧:
Process.Start("http://www.google.com");
它将在默认浏览器中打开。这可能就是您要查找的内容
p.WaitForInputIdle()
你能为你的问题增加一些背景知识吗?例如,您想要完成什么,需要等待默认浏览器(不一定是IE)加载?也许还有其他方法可以完成你想做的事情。@Brian我需要截取IE中打开的链接的屏幕截图。标记作为答案。我发现了一个重复的问题-