简体   繁体   English

Webaii以其他用户身份打开/运行Internet Explorer

[英]Webaii Opening/running Internet Explorer as different user

Is it possible to open/running IE as different users using Webaii? 是否可以使用Webaii以不同的用户身份打开/运行IE?

I know manually you can hold down shift and right click windows explorer in 'All Programs' from the Windows Start menu and select 'Run as different user'. 我知道您可以在Windows“开始”菜单的“所有程序”中按住shift键并右键单击Windows资源管理器,然后选择“以其他用户身份运行”。 But is it possible to open an IE browser using Webaii and entering different user account details (username and password)? 但是是否可以使用Webaii打开IE浏览器并输入不同的用户帐户详细信息(用户名和密码)?

The reason I ask is because I want to check that when logging onto a SilverLight web site with users with different permissions that certain things are hidden/visible. 我问的原因是因为我想检查以不同权限的用户登录SilverLight网站时,某些事情是隐藏/可见的。

If is not possible I will have to open the IE browser manually. 如果不可能,我将不得不手动打开IE浏览器。 Is there a way to make my code to shift focus to the manually opened browser? 有没有办法让我的代码将焦点转移到手动打开的浏览器上?

Thanks, 谢谢,

Andy 安迪

Andy, I work for Telerik in the Test Studio and Webaii technical support department. 安迪,我在Test Studio和Webaii技术支持部门为Telerik工作。 I will endeavor to help you out. 我会尽力帮助您。

I am sorry to report I have mostly bad news for you. 很抱歉,我对您来说大部分是坏消息。 1) No it is not possible to make Webaii launch the browser under different credentials. 1)否,不可能使Webaii以不同的凭据启动浏览器。 2) No it is not possible to make Webaii connect to an already opened browser. 2)否,无法使Webaii连接到已经打开的浏览器。

As an alternative I suggest running the program which is executing your Webaii test under different credentials. 另外,我建议运行在不同凭据下执行Webaii测试的程序。 Webaii will launch the browser under whatever credentials the current process is executing under. Webaii将以当前进程正在执行的任何凭据启动浏览器。 Thus you may be logged into your machine as "Andy" then run Visual Studio as "Jane", run your Webaii test within Visual Studio and Webaii will launch the browser as "Jane". 因此,您可能以“ Andy”身份登录到计算机,然后以“ Jane”身份运行Visual Studio,在Visual Studio中运行Webaii测试,Webaii将以“ Jane”身份启动浏览器。

I hope that helps. 希望对您有所帮助。

Cody 科迪

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Selenium以其他用户身份运行Internet Explorer - Run internet explorer as different user using Selenium 如何阻止用户打开像Internet Explorer或firefox这样的新进程? - how to block a user from opening new process like internet explorer or firefox? 打开其中有3个选项卡的Internet Explorer Windows - Opening an Internet Explorer Windows with Exactly 3 Tabs in it 作为Windows服务运行时,Internet Explorer为什么会返回不同的结果? - Why might Internet explorer return different results when running as a windows service? 在Internet Explorer实例中运行JavaScript函数 - Running a JavaScript function in an instance of Internet Explorer 检测Internet Explorer进程是否正在运行Flash Player - Detecting if an Internet Explorer process is running Flash Player 如何访问 Internet Explorer 的用户字体设置? - How to access the user font settings of the Internet Explorer? C#按用户注册Internet Explorer工具栏 - c# register internet explorer toolbar by user 在没有聚焦的情况下打开隐藏的Internet Explorer窗口? - Opening a Hidden Internet Explorer Window without it getting Focus? 在C#中打开Internet Explorer浏览器窗口到特定的URL - Opening a Internet Explorer browser window to a specific URL in C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM