Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Selenium .NET 2.0 WebDriver using InternetExplorerDriver for UI tests. #2018

Closed
lukeis opened this issue Mar 2, 2016 · 7 comments
Closed

Comments

@lukeis
Copy link
Member

lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 2018

Before filing an issue, please read the page at
http://code.google.com/p/selenium/wiki/SeleniumHelp This contains lot of
information about how best to get help, and tells you what we need to know.

Still here? We know that bugs are frustrating and annoying things. We also
know that you've probably spent ages trying to figure out what's wrong. The
more information you give us now, the more likely it is that we'll be able
to help.

What steps will reproduce the problem?
1. Run UI tests as part of TeamCity build using NUnit runner.
2.
3.

What is the expected output? What do you see instead?


Selenium version: 2.0
OS: Windows 7
Browser: IE
Brower version: 9

When i try to run UI tests as part of the TeamCity build using NUnit runner IWebDriver
initialization fails with the following error:

Unexpected error launching Internet Explorer. Protected Mode must be set to the same
value (enabled or disabled) for all zones. (NoSuchDriver)   at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response
errorResponse) in c:\Projects\WebDriver\trunk\dotnet\src\WebDriver\Remote\RemoteWebDriver.cs:line
985
   at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(DriverCommand driverCommandToExecute,
Dictionary`2 parameters) in c:\Projects\WebDriver\trunk\dotnet\src\WebDriver\Remote\RemoteWebDriver.cs:line
805
   at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
in c:\Projects\WebDriver\trunk\dotnet\src\WebDriver\Remote\RemoteWebDriver.cs:line
773

I use the following build setup: TeamCity running on Win Server 2008 and TeamCity build
agent running on my PC (Win 7). I have also tried using TeamCity build server as the
agent but had the same issue. The build agent is running under admin domain account.
I have checked IE setting to make sure that protected mode is on for all zones (also
tried to disable the mode for all zones). 
If i run the tests locally (using Visual studio, Resharper plugin or NUnit directly,
i dont have a problem. Firefox and Chrome work perfectly too. It just Internet Explorer
that is causing an issue. I have spent 2 days researching the net and tried pretty
much everything i could find (using overrides, etc). I would appreciate your help.



Reported by pufeks on 2011-07-08 16:00:42

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by jari.bakken on 2011-07-10 00:19:20

  • Labels added: Component-WebDriver, Browser-IE

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

You should disable the IE's protected mode first for all zones

Reported by binken.zou on 2011-07-10 04:51:51

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

When you say that you have checked that Protected Mode is on for all zones, how did
you verify that? In other words, which account were you logged into when you checked?
Protected Mode settings in IE are per-user, so if you checked on the build server while
logged in under your personal account, those setting wouldn't necessarily be the same
as the settings for the admin account the build server is using. 

Reported by james.h.evans.jr on 2011-07-10 14:03:00

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Hi James,

Yes i have verified that the account that the build is running under has got Protected
Mode enabled for all zones. It is the same account i build locally (locally it works
just fine).

Reported by pufeks on 2011-07-11 07:33:32

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Thanks everyone for help, i have managed to resolve the issue by creating a new domain
account with admin rights and first thing i did was configure IE security settings
(enabled Protective Mode for all zones). I then set my TeamCity build agent service
 to run under this account and all seems to work fine.

Reported by pufeks on 2011-07-11 07:58:27

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Glad you've got things working

Reported by dawagner on 2011-07-11 10:19:51

  • Status changed: Invalid

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by luke.semerau on 2015-09-17 18:13:11

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 2, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant