.NET运行WebBrowser控件的两个实例(独立的cookie容器) [英] .NET Running 2 instances of the WebBrowser Control (separate cookie containers)

查看:758
本文介绍了.NET运行WebBrowser控件的两个实例(独立的cookie容器)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图登录到我的网站有两个不同的帐户(管理员/普通用户)来测试一些权限口罩 - 总之它一个简单的管理工具。有什么办法来运行在两个独立的窗口单独的cookie容器中的WebBrowser控件的两个实例,而无需执行两次程序?

I'm trying to login to my website with two different accounts (admin/regular user) to test out some permissions masks - in short its a simple admin tool. Is there any way to run 2 instances of the WebBrowser control with separate cookie containers on two separate windows without having to execute your program twice?

编辑:我使用C#

推荐答案

您可以使用使用iMacros都用于此目的:的 http://wiki.imacros.net/iimInit%28%29#Separate_Browser_Instances

You can use use iMacros for this purpose: http://wiki.imacros.net/iimInit%28%29#Separate_Browser_Instances

这篇关于.NET运行WebBrowser控件的两个实例(独立的cookie容器)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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