IE driver not working ( FAILED TO CREATE NEW WEBDRIVER_DRIVER INSTANCE ...)

2,546 views
Skip to first unread message

80Vikram

unread,
Sep 4, 2014, 12:14:50 PM9/4/14
to thucydid...@googlegroups.com
Hi All,

I'm not able to use IE driver with framework ( it's working perfectly with FF and Chrome though )

I'm using Win 7 + IE 11 , have setup PATH variable.

In framework has mentioned iexplorere at only place only which is @Managed(driver = "iexplorere")

Any other step do I need to do here ?

Thanks in advance.

Regards,
Vikram

Theo

unread,
Sep 5, 2014, 4:45:22 AM9/5/14
to thucydid...@googlegroups.com
Hi,

The issue is most probably because you have set different Protected Modes in Internet Explorer.

The error you'll first see is

"5134 [pool-1-thread-1] ERROR net.thucydides.core.webdriver.WebDriverFacade - FAILED TO CREATE NEW WEBDRIVER_DRIVER INSTANCE class org.openqa.selenium.ie.InternetExplorerDriver: Could not instantiate class org.openqa.selenium.ie.InternetExplorerDriver
net.thucydides.core.webdriver.UnsupportedDriverException: Could not instantiate class org.openqa.selenium.ie.InternetExplorerDriver"

But somewhere you should see also this error "Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones"

Go Internet Explorer > Internet Options > Security and set same Protected Mode for all zones (i.e. Internet, Local intranet, Trusted sites, Restricted sites): either enabled or disabled for all of them.

Then try to run again your test cases. Hope this helps, that was the issue in my particular case.

Cheers
Theo

80Vikram

unread,
Sep 5, 2014, 5:28:09 AM9/5/14
to thucydid...@googlegroups.com
Hi Theo,

Good morning , thanks a ton for reply. 

You are totally right , I googled error and found solution at 

I am ( forced to ) working on IE 11 and need to follow unique instructions per 



Thanks & Regards,
Vikram

David Plante

unread,
Oct 14, 2014, 4:12:36 PM10/14/14
to thucydid...@googlegroups.com
I had the same problem, and it worked fine. Problem I may have, is after a couple of minutes, my browser settings are changed back to previous values, and check are removed.
 
Other concern I have, is it mandatory to download the IEDriverServe.exe? Is there a way to not use this (as for Firefox) and having only maven dependencies managing this? When pulling from repo the project, user has to download this server. We were looking for a solution more convinient than having dependencies outside of project.
 
Thanks!

80Vikram

unread,
Oct 16, 2014, 8:58:13 AM10/16/14
to thucydid...@googlegroups.com
Hi David,

1. As per my knowledge; IEDriverServe need to be downloaded same like chromedriver ( each time there is update ) , for each of the update. it can't be controlled through pom.xml. I'm not sure if there is any workaround 

Also I'm using IE browser for smoke cases only and not for full regression run. It is pain to maintain test cases on IE browser , you can check analytics and see if it's worth putting efforts on IE

Regards,
Vikram

David Plante

unread,
Oct 27, 2014, 12:43:01 PM10/27/14
to thucydid...@googlegroups.com
Problem is, our web application is intended to be used with Internet Explorer 9. So, we decided to run regression using same browser as the one used by end user. It's an insurance web application used by sales agents.

As mentionned in another post, I finally found a way to run using the IEDriver. I created the thucydides.properties. Problem is, performance is horrible. It has difficulties to send the request to the browser. Sometime, we see the browser reacts strangely, like if the browser wanted to resize.

I wonder if I have to send some kind of parameters.

I would like also to use "INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS" in order to bypass the needs to have protected mode the same for all region in security. Security here reset the setting each time the browser is closed, and checkboxes are not the same for all settings.
Reply all
Reply to author
Forward
0 new messages