Not Able to open the IE11 and Html | Selenium Forum
M
Posted on 22/08/2015
import org.openqa.selenium.ie.InternetExplorerDriver;

public class test {

public static void main(String[] args) {

System.setProperty("webdriver.ie.driver", "C:\\Users\\Archana\\Downloads\\IEDriverServer.exe");
// InternetExplorerDriver ie = new InternetExplorerDriver ();
// ie.get("http://google.com");
======================================================
== this is Error For IE11
Started InternetExplorerDriver server (64-bit)
2.47.0.0
Listening on port 34055
Exception in thread "main" org.openqa.selenium.remote.SessionNotFoundException: Unexpected error launching Internet Explorer. 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. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.41 seconds
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 02:56:46'
System info: host: 'Archana', ip: '192.168.181.1', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_45'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:164)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:595)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:227)
at org.openqa.selenium.ie.InternetExplorerDriver.run(InternetExplorerDriver.java:182)
at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:174)
at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:146)
at day2.test.main(test.java:34)


//========================================================================
HtmlUnitDriver d1 =new HtmlUnitDriver();
d1.get("htttp://bbc.com");
System.out.println(d1.getTitle());
================================ Error for Html =============
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 02:56:46'
System info: host: 'Archana', ip: '192.168.181.1', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_45'
Driver info: driver.version: HtmlUnitDriver
at org.openqa.selenium.htmlunit.HtmlUnitDriver.get(HtmlUnitDriver.java:520)
at day2.test.main(test.java:40)
Caused by: java.net.MalformedURLException: unknown protocol: htttp
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at org.openqa.selenium.htmlunit.HtmlUnitDriver.get(HtmlUnitDriver.java:518)
... 1 more
}
}
=========================================

M
Replied on 22/08/2015

Error says - Protected Mode settings are not the same for all zones

You have to change the protected mode settings in IE in all the zones
Go to Internet options and security

Just search on google - "Changing protected mode settings in IE"

OR watch video 11


M
Replied on 23/08/2015

[quote="its.thakur@gmail.com":36ra5dr8]Error says - Protected Mode settings are not the same for all zones

You have to change the protected mode settings in IE in all the zones
Go to Internet options and security

Just search on google - "Changing protected mode settings in IE"

OR watch video 11[/quote:36ra5dr8]


I did setting the protected mode and its all similar level high.


M
Replied on 25/08/2015

him,
error is in protected mode. I had the same error few days back.