WebBrowser控件,隔离和IE8的InPrivate模式 [英] WebBrowser control, isolation and IE8 InPrivate mode

查看:470
本文介绍了WebBrowser控件,隔离和IE8的InPrivate模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个需要运行在Web浏览器控件的一些自动化任务,但我似乎面临一些限制/我不是100%确定如何解决未知数。我跑的应用程序不公开发行,这样我就可以强制执行prerequisite已安装IE8。

I have a need to run some automation tasks in a web browser control but I seem to be facing a few limitations/unknowns that I'm not 100% sure how to resolve. The application I'm running is not for public release, so I can enforce a prerequisite that IE8 is installed.

GeckoFX( http://geckofx.org )将是巨大的,除了它不给我操作DOM随我能够接受的方式使用上的HtmlElement对象的web浏览器的InvokeMember方法。

GeckoFX (http://geckofx.org) would be great except it does not offer me an acceptable way to manipulate the DOM as I would using the WebBrowser's InvokeMember method on HtmlElement objects.

WebKit.net甚至会更好,但它的发展还为时过早,提供我需要做这一点的功能。

WebKit.net would be even better but it's too early in its development to offer the functionality I need to do this either.

这给我留下了WebBrowser控件。与web浏览器的问题是,它虽然只是运行IE浏览器,这是与所有进程大胖共享环境。换句话说,所有实例共享的cookies,会话,代理服务器设置等。

This leaves me with the WebBrowser control. The problem with WebBrowser though is that it just runs IE, which is a big fat shared environment with all processes. In other words, all instances share cookies, sessions, proxy settings, etc.

这是我想要的:


  • 目前自动化会议结束,饼干/会话/缓存中的对象不保留。而不是清除全球的Internet临时文件夹,是有我访问由IE8暴露的InPrivate模式的方法?

  • At the end of an automation session, cookies/sessions/cache objects are not retained. Rather than clearing the global Temporary Internet Files folder, is there a way for me to access the InPrivate mode exposed by IE8?

如果有进入隐私浏览的方式,它是我能够运行两个的InPrivate模式会并排侧相互隔离?

If there is a way to access InPrivate browsing, is it possible for me to run two InPrivate-mode sessions side-by-side isolated from each other?

在理想情况下,我想能够运行在单独的线程多个相互隔离的自动化任务,每一个都有自己的私人浏览器控件,每个都有自己的孤立会话/环境不保留,当任务完成。

Ideally I'd like to be able to run multiple isolated automation tasks in separate threads, each with its own private browser control, each with its own isolated session/environment that is not retained when the task completes.

任何帮助或投入,这将是AP preciated!

Any help or input into this would be appreciated!

推荐答案

没有,你不能运行的InPrivate模式WebBrowser控件;这根本就不是一个支持的方案。

No, you cannot run the WebBrowser control in InPrivate mode; it's simply not a supported scenario.

是的,你可以的InPrivate模式下运行IE浏览器的两个实例,并相互隔离。

Yes, you can run two instances of IE in InPrivate mode and isolate them from each other.

使用命令行:IEXPLORE.EXE - 私人-nomerge

Use the command line: iexplore.exe -private -nomerge

这篇关于WebBrowser控件,隔离和IE8的InPrivate模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆