Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to RunAs different users with Internet Explorer
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
We need to test our website as different users, so want to open Internet Explorer with "RunAs".

When I use this (on Windows XP):
SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe","","C:\Program Files\Internet Explorer","runas"
the RunAs dialog window opens but QTP just hangs there until that the user info is filled in manually. I want to be able to fill it in from QTP. I have added the RunAs dialog (and it's controls) to the object repository and want to set the User Name and password from QTP, but apparently that SystemUtil.Run statement doesn't complete until the browser is open.

Is there another way to do this, possible with a script (which would include the user name and password passed in as parameters)? If so, how? If not, what do others do to test as different users?
Reply


Messages In This Thread
How to RunAs different users with Internet Explorer - by Debby Browne - 03-30-2011, 12:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting URL from Internet Explorer BVVPrasad 1 4,686 07-25-2011, 08:24 AM
Last Post: rajpes
  Internet Explorer has stopped working kotaramamohana 8 11,901 03-07-2011, 02:22 PM
Last Post: krupaluk
  Problem with invoking url in internet explorer vijay44 1 3,053 01-21-2010, 01:11 PM
Last Post: Saket
  Automate Rice Internet Tier sgorantiwar 0 1,777 01-21-2009, 06:03 PM
Last Post: sgorantiwar
Question How to execute RunAs command in QTP? ashokghali 2 7,211 03-07-2008, 03:58 PM
Last Post: ashokghali

Forum Jump:


Users browsing this thread: 1 Guest(s)