Run tests on IE (windows) without user logged in

38 views
Skip to first unread message

Vitali Samusik

unread,
Oct 17, 2013, 7:37:46 AM10/17/13
to seleniu...@googlegroups.com
Hello.

I'm a newbie with Selenium 2, and I can't find the answer googling around the net.

What I need is to run tests against my site in Internet Explorer using a separate user account on my machine (os is windows 7) without user logged in.
I really want to use C# NUnit tests, so that I could check timing for the web scenarios and make the test fail, if the time interval to navigate \ open \ etc. actions is to big.

What I can't find how to do - is to execute test without user logged in.
When I log into the system as my separate user and run tests - everything works just fine.
However when I configure test to run without the user logged in - I get Unexpected error launching Internet Explorer. IELaunchURL() returned 80070490 for URL 'http://localhost:58636/' (NoSuchDriver) error.
As far as I'm concerned, it means, that webDriver wasn't able to launch, as there were no display..

Could you please help me to find the way to run my tests without user logged in?
 

Vitali Samusik

unread,
Oct 17, 2013, 12:08:15 PM10/17/13
to seleniu...@googlegroups.com
Hi, everyone.

Just for your consideration

I've recently rewrote my scenario to use Firefox.
tried launching it with PsExec.exe (http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx) with -s option.
My command looked like PsExec.exe -s \\localhost <Path to my .exe which runs test>

It worked just fine.

As for the IE - as far as I've googled - it looks like IEDriverServer.exe still has some bugs..
Running with PsExec IE scenario - I received a mistake, that couldn't find an element by id, though the element existed. It's a different problem, cause the major idea worked (IE started up and started running the scenario without a user logged in.)
Reply all
Reply to author
Forward
0 new messages