I have IE 11 browser on Windows 8. I'm trying to automate a simple search but I am getting an exception. (The script works in Firefox)
I made regedit changes according to instructions given in https://code.google.com/p/selenium/wiki/InternetExplorerDriver
Created a QWORD value since I have 64 bit machine.
Following error appears:
Exception in thread "main" org.openqa.selenium.NoSuchWindowException: Unable to find element on closed window (WARNING: The server did not provide any stacktrace information)
What else can I do to overcome this issue?
-
Did you search on stackoverflow. There are many people with the same issues.demouser123– demouser1232015年07月20日 03:01:57 +00:00Commented Jul 20, 2015 at 3:01
-
stackoverflow.com/questions/26712417/…demouser123– demouser1232015年07月20日 03:02:03 +00:00Commented Jul 20, 2015 at 3:02
2 Answers 2
When I got the same error I edited settings in Internet Explorer:
Tools -> Internet option -> Security
Change security from high to medium-high or medium and UN-check Enable Protection Mode
Second problem I found is:
For this problem I used IE 32 Bit Driver
Hope this will solve your problem.
It is hard to say without seeing your code but a quick search on StackOverflow shows that people with similar error messages are having issues related to IE's Protected Mode (source) or: capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);
(source).
-
However, manually setting the protected mode setting is recommended way than setting it from
capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);
saifur– saifur2015年05月17日 19:10:47 +00:00Commented May 17, 2015 at 19:10
Explore related questions
See similar questions with these tags.