This repository was archived by the owner on Nov 29, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 195
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
Selenium webdriver cannot launch Internet Explorer 10 and 11 in In-private Model with RemoteWebDriver #6544
Copy link
Copy link
Open
Description
Originally reported on Google Code with ID 6544
Hi,
selenium team,
After investigate i found only internet Explorer 8 and 9 can launch in In-private Model
with RemoteWebDriver, below is my test environment step:
1) download the latest jar file selenium-server-standalone-2.37.0.jar and IEDriverServer.exe.
2) open the WIN7 Registry Editor, find the HKEY_CURRENT_USER\Software\Microsoft\Internet
Explorer\Main folder and new a REG_DWORD (32-bit) value name as TabProcGrowth, set
the value as decimal 0.
3) start the IEDriverServer with the command java -jar selenium-server-standalone-2.37.0.jar
-Dwebdriver.ie.driver=.\IEDriverServer.exe.
4) prepare capabilities in java code.
DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();
capabilities.setCapability(InternetExplorerDriver.FORCE_CREATE_PROCESS, true);
capabilities.setCapability(InternetExplorerDriver.IE_SWITCHES, "-private");
........
test Result:
internet Explorer 10 and 11 in In-private Model with RemoteWebDriver. but test internet
Explorer 10 can be launch in In-private Model in local machine. and internet Explorer
11 cann't find the element very well, will occur the following exception:
org.openqa.selenium.ElementNotVisibleException: Received a JavaScript error attempting
to click on the element using synthetic events. We are assuming this is because the
element isn't displayed, but it may be due to other problems with executing JavaScript.
(WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 235 milliseconds
Build info: version: '2.37.0', revision: 'a7c61cb', time: '2013-10-18 17:14:00'
System info: host: 'WIN7CN', ip: '192.168.230.131', os.name: 'Windows 7', os.arch:
'amd64', os.version: '6.1', java.version: '1.6.0_38-ea'
Session ID: 1e7254e7-c0a6-4356-825e-0438b795a2a9
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, enablePersistentHover=false,
ignoreZoomSetting=false, ie.ensureCleanSession=false, browserName=internet explorer,
enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=11, ie.usePerProcessProxy=false,
cssSelectorsEnabled=true, ignoreProtectedModeSettings=true, requireWindowFocus=false,
initialBrowserUrl=http://localhost:10427/, handlesAlerts=true, ie.forceCreateProcessApi=false,
nativeEvents=false, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}]
Command duration or timeout: 5.42 seconds
Build info: version: '2.35.0', revision: '8df0c6bedf70ff9f22c647788f9fe9c8d22210e2',
time: '2013-08-17 12:46:41'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version:
'1.6.0_38-ea'
Session ID: 9d514a67-3806-4f10-97ce-95b98ca72a58
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, enablePersistentHover=false,
ignoreZoomSetting=false, ie.ensureCleanSession=false, browserName=internet explorer,
enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, webdriver.remote.sessionid=9d514a67-3806-4f10-97ce-95b98ca72a58,
version=11, ie.usePerProcessProxy=false, ignoreProtectedModeSettings=true, cssSelectorsEnabled=true,
requireWindowFocus=false, initialBrowserUrl=http://localhost:10427/, handlesAlerts=true,
ie.forceCreateProcessApi=false, nativeEvents=false, browserAttachTimeout=0, ie.browserCommandLineSwitches=,
takesScreenshot=true}]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:191)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:268)
at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:79)
at com.dell.foglight.str.replayer.IECookieTest.testIEWithPirvateModel(IECookieTest.java:135)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:69)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:48)
could you kindly explain about it? webdriver support the Internet Explorer 11 now?
i would like to ask two questions:
1) Selenium webdriver cannot launch Internet Explorer 10 and 11 in In-private Model
with RemoteWebDriver, can you give some advises?
2) webdriver support the Internet Explorer 11 now?
Thanks
Reported by terry.lee.core
on 2013-11-08 06:15:17