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

Internet Explorer Driver unable to executeScript() remotely #7135

Open
lukeis opened this issue Mar 4, 2016 · 20 comments
Open

Internet Explorer Driver unable to executeScript() remotely #7135

lukeis opened this issue Mar 4, 2016 · 20 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 7135

I'm trying to clear local storage (but any Javascript passed to driver.executeScript()
seems to give same behavior) when using Internet Explorer remotely (i.e. client connects
to a hub running Selenium 2.40.0, with node (also 2.40.0) running on same machine),
but this throws an exception "WebDriverException: JavaScript error".

This returns the following stack trace:

org.openqa.selenium.WebDriverException: JavaScript error (WARNING: The server did not
provide any stacktrace information)
Command duration or timeout: 31 milliseconds
Build info: version: '2.40.0', revision: 'fbe29a9', time: '2014-02-19 20:54:28'
System info: host: 'DEVVM01', ip: '10.15.1.115', os.name: 'Windows 7', os.arch: 'x86',
os.version: '6.1', java.version: '1.7.0_51'
Session ID: c1499bcf-8432-4d0d-946f-99c52e1a80a6
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false,
enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer,
enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=10, ie.usePerProcessProxy=false,
cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false,
handlesAlerts=true, initialBrowserUrl=http://localhost:42125/, ie.forceCreateProcessApi=false,
nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}]
Command duration or timeout: 146 milliseconds
Build info: version: '2.40.0', revision: '4c5c0568b004f67810ee41c459549aa4b09c651e',
time: '2014-02-19 11:13:01'
System info: host: 'L6FWTRY1', ip: '10.15.1.66', os.name: 'Windows 7', os.arch: 'x86',
os.version: '6.1', java.version: '1.7.0_40'
Session ID: 629e384d-e4a9-4556-8d45-325db0dd8b2d
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false,
enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer,
enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, webdriver.remote.sessionid=629e384d-e4a9-4556-8d45-325db0dd8b2d,
version=10, ie.usePerProcessProxy=false, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false,
requireWindowFocus=false, handlesAlerts=true, initialBrowserUrl=http://localhost:42125/,
ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=,
takesScreenshot=true}]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:573)
    at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:482)
    at IEAndExecuteScriptTest.clearLocalStorageOnGoogle(IEAndExecuteScriptTest.java:41)
    at IEAndExecuteScriptTest.remoteLocalStorageClear(IEAndExecuteScriptTest.java:28)
    at IEAndExecuteScriptTest.testExecuteScriptOnRemoteInternetExplorer(IEAndExecuteScriptTest.java:16)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: org.openqa.selenium.remote.ScreenshotException: Screen shot has been taken
Build info: version: '2.40.0', revision: '4c5c0568b004f67810ee41c459549aa4b09c651e',
time: '2014-02-19 11:13:01'
System info: host: 'L6FWTRY1', ip: '10.15.1.66', os.name: 'Windows 7', os.arch: 'x86',
os.version: '6.1', java.version: '1.7.0_40'
Driver info: driver.version: RemoteWebDriver
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:125)
    ... 31 more
Caused by: org.openqa.selenium.WebDriverException: JavaScript error (WARNING: The server
did not provide any stacktrace information)
Command duration or timeout: 31 milliseconds
Build info: version: '2.40.0', revision: 'fbe29a9', time: '2014-02-19 20:54:28'
System info: host: 'DEVVM01', ip: '10.15.1.115', os.name: 'Windows 7', os.arch: 'x86',
os.version: '6.1', java.version: '1.7.0_51'
Session ID: c1499bcf-8432-4d0d-946f-99c52e1a80a6
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false,
enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer,
enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=10, ie.usePerProcessProxy=false,
cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false,
handlesAlerts=true, initialBrowserUrl=http://localhost:42125/, ie.forceCreateProcessApi=false,
nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}]
Build info: version: '2.40.0', revision: '4c5c0568b004f67810ee41c459549aa4b09c651e',
time: '2014-02-19 11:13:01'
System info: host: 'L6FWTRY1', ip: '10.15.1.66', os.name: 'Windows 7', os.arch: 'x86',
os.version: '6.1', java.version: '1.7.0_40'
Driver info: driver.version: EventFiringWebDriver
    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:193)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:573)
    at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:482)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at org.openqa.selenium.support.events.EventFiringWebDriver$2.invoke(EventFiringWebDriver.java:101)
    at com.sun.proxy.$Proxy2.executeScript(Unknown Source)
    at org.openqa.selenium.support.events.EventFiringWebDriver.executeScript(EventFiringWebDriver.java:213)
    at org.openqa.selenium.remote.server.handler.ExecuteScript.call(ExecuteScript.java:55)
    at org.openqa.selenium.remote.server.handler.ExecuteScript.call(ExecuteScript.java:1)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:170)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


When I execute the same commands using chrome (on the same node) no error is thrown,
when I run the same code with Internet Explorer locally I also don't have this problem.

I found the same issue being reported on Stack Overflow: http://stackoverflow.com/questions/20861641/executescript-not-working-with-internetexplorer-driver-selenium



Selenium version: 2.40.0
OS: Windows 7
Browser: Internet Explorer 
Browser version: 10.0.9200.16844, Update Version: 10.0.14


Java unit test to reproduce (remote IE run fails, other 2 cases pass):


import org.junit.Test;
import org.openqa.selenium.Platform;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;

import java.net.MalformedURLException;
import java.net.URL;

public class IEAndExecuteScriptTest {
    private static final String LOCAL_IE_DRIVER = ".\\webdrivers\\IEDriverServer.exe";
    private static final String GRID_HUB_URL = "http://devvm01.mydomain.local:4444/wd/hub";

    @Test
    public void testExecuteScriptOnRemoteInternetExplorer() throws Exception {
        remoteLocalStorageClear("internet explorer");
    }

    @Test
    public void testExecuteScriptOnRemoteChrome() throws Exception {
        remoteLocalStorageClear("chrome");
    }

    private void remoteLocalStorageClear(String browser) throws MalformedURLException
{
        URL remoteUrl = new URL(GRID_HUB_URL);
        DesiredCapabilities desiredCapabilities = new DesiredCapabilities(browser,
"", Platform.ANY);
        RemoteWebDriver remoteWebDriver = new RemoteWebDriver(remoteUrl, desiredCapabilities);
        clearLocalStorageOnGoogle(remoteWebDriver);
    }

    @Test
    public void testExecuteScriptOnInternetExplorer() throws Exception {
        System.setProperty("webdriver.ie.driver", LOCAL_IE_DRIVER);
        InternetExplorerDriver driver = new InternetExplorerDriver();
        clearLocalStorageOnGoogle(driver);
    }

    private void clearLocalStorageOnGoogle(RemoteWebDriver driver) {
        try {
            driver.navigate().to("https://google.com");
            driver.executeScript("localStorage.clear();");
        } finally {
            driver.close();
        }
    }
}



Reported by hoeben@hsac.nl on 2014-03-27 12:59:02

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2014-04-08 13:39:24

  • Labels added: Browser-IE

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

FYI: Can't reproduce with the provided sample, works locally and remotely.

Reported by barancev on 2014-04-10 09:58:17

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I also have this issue (call to localStorage fails from 'executeScript') using Internet
Explorer 11.

Reported by stas.berkov on 2014-06-09 13:49:53

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Is there a way for us to gather additional information so you can determine why this
does happen for us, but you are unable to reproduce?

Reported by hoeben@hsac.nl on 2014-06-09 15:33:57

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I am seeing the exact same issue with Window7 and IE11 running remotely. IE10 on a similiar
Window7 machine is fine.

Is there any information that I could provide to nail this down?

Reported by dankurka@google.com on 2014-07-28 13:52:22

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Is there any chance that anyone experiencing this issue is trying to execute their JavaScript
before navigating to a page? If so, what happens if you navigate to a page first?

Reported by james.h.evans.jr on 2014-07-28 14:19:20

  • Status changed: NeedsClarification

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Verified that I am calling executeScript way after the page has loaded.

The exception I am getting contained this:

org.openqa.selenium.NoSuchWindowException: Unable to get browser (WARNING: The server
did not provide any stacktrace information)
Command duration or timeout: 16 milliseconds
Build info: version: '2.40.0', revision: 'fbe29a9', time: '2014-02-19 20:54:28'
System info: host: 'gwt-ie11', ip: '172.28.82.244', os.name: 'Windows 7', os.arch:
'amd64', os.version: '6.1', java.version: '1.7.0_65'
Session ID: 47efb89f-65b9-4915-b282-c4b061049398
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false,
enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer,
enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=11, ie.usePerProcessProxy=false,
cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false,
handlesAlerts=true, initialBrowserUrl=http://localhost:20212/, ie.forceCreateProcessApi=false,
nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}]
Command duration or timeout: 373 milliseconds
Build info: version: '2.40.0', revision: '4c5c0568b004f67810ee41c459549aa4b09c651e',
time: '2014-02-19 11:13:01'
System info: host: 'stig.muc.corp.google.com', ip: '172.18.0.148', os.name: 'Linux',
os.arch: 'i386', os.version: '3.13.0-30-generic', java.version: '1.7.0-google-v5'
Session ID: 4a3f9fee-b094-4f33-be95-1221eaa8ee40
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false,
enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer,
enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, webdriver.remote.sessionid=4a3f9fee-b094-4f33-be95-1221eaa8ee40,
version=11, ie.usePerProcessProxy=false, ignoreProtectedModeSettings=false, cssSelectorsEnabled=true,
requireWindowFocus=false, handlesAlerts=true, initialBrowserUrl=http://localhost:20212/,
ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=,
takesScreenshot=true}]

Reported by dankurka@google.com on 2014-07-28 15:51:16

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I should add the actual window is still there. It is never closed by webdriver.

Reported by dankurka@google.com on 2014-07-28 15:52:52

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

If the error you're receiving is "Unable to get browser" on IE11, I would bet that you're
encountering issue #6511. It's almost guaranteed that the root cause of your issue
is not the same as that initially reported in this issue report. If you can try the
same set of steps with IE10 (as the initial reporter was using), and can provide a
snip of code that shows the issue, that would be helpful.

Reported by james.h.evans.jr on 2014-07-28 16:32:51

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Thanks James for the hint, I'll see if I can get by with the registry workaround.

As for IE10 this is not reproducible. Only IE11 is affected, which makes it more likely
to be related with issue #6511

Reported by dankurka@google.com on 2014-07-28 18:37:14

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

As seen in the example unit test we first navigate to a page (google.com) before trying
to clear local storage.

I updated the test case to wait 5 seconds after navigating to Google before trying
to clear local storage and still got the same error:


org.openqa.selenium.WebDriverException: JavaScript error (WARNING: The server did not
provide any stacktrace information)
Command duration or timeout: 34 milliseconds
Build info: version: '2.40.0', revision: 'fbe29a9', time: '2014-02-19 20:54:28'
System info: host: 'DEVVM01', ip: '10.15.1.115', os.name: 'Windows 7', os.arch: 'x86',
os.version: '6.1', java.version: '1.7.0_51'
Session ID: 76f783a7-b471-43ea-ad79-254660c955a8
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false,
enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer,
enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=10, ie.usePerProcessProxy=false,
cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false,
handlesAlerts=true, initialBrowserUrl=http://localhost:27406/, ie.forceCreateProcessApi=false,
nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}]
Command duration or timeout: 1.54 seconds
Build info: version: '2.41.0', revision: '3192d8a6c4449dc285928ba024779344f5423c58',
time: '2014-03-27 11:29:39'
System info: host: 'L6FWTRY1', ip: '10.15.1.77', os.name: 'Windows 7', os.arch: 'x86',
os.version: '6.1', java.version: '1.7.0_51'
Session ID: 840738e1-b79e-47dd-aa9f-02cd8c8c8178
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false,
enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer,
enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, webdriver.remote.sessionid=840738e1-b79e-47dd-aa9f-02cd8c8c8178,
version=10, ie.usePerProcessProxy=false, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false,
requireWindowFocus=false, handlesAlerts=true, initialBrowserUrl=http://localhost:27406/,
ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=,
takesScreenshot=true}]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:595)
    at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:504)
    at IEAndExecuteScriptTest.clearLocalStorageOnGoogle(IEAndExecuteScriptTest.java:46)
    at IEAndExecuteScriptTest.remoteLocalStorageClear(IEAndExecuteScriptTest.java:28)
    at IEAndExecuteScriptTest.testExecuteScriptOnRemoteInternetExplorer(IEAndExecuteScriptTest.java:16)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
Caused by: org.openqa.selenium.remote.ScreenshotException: Screen shot has been taken
Build info: version: '2.41.0', revision: '3192d8a6c4449dc285928ba024779344f5423c58',
time: '2014-03-27 11:29:39'
System info: host: 'L6FWTRY1', ip: '10.15.1.77', os.name: 'Windows 7', os.arch: 'x86',
os.version: '6.1', java.version: '1.7.0_51'
Driver info: driver.version: RemoteWebDriver
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:125)
    ... 31 more
Caused by: org.openqa.selenium.WebDriverException: JavaScript error (WARNING: The server
did not provide any stacktrace information)
Command duration or timeout: 34 milliseconds
Build info: version: '2.40.0', revision: 'fbe29a9', time: '2014-02-19 20:54:28'
System info: host: 'DEVVM01', ip: '10.15.1.115', os.name: 'Windows 7', os.arch: 'x86',
os.version: '6.1', java.version: '1.7.0_51'
Session ID: 76f783a7-b471-43ea-ad79-254660c955a8
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false,
enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer,
enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=10, ie.usePerProcessProxy=false,
cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false,
handlesAlerts=true, initialBrowserUrl=http://localhost:27406/, ie.forceCreateProcessApi=false,
nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}]
Build info: version: '2.41.0', revision: '3192d8a6c4449dc285928ba024779344f5423c58',
time: '2014-03-27 11:29:39'
System info: host: 'L6FWTRY1', ip: '10.15.1.77', os.name: 'Windows 7', os.arch: 'x86',
os.version: '6.1', java.version: '1.7.0_51'
Driver info: driver.version: EventFiringWebDriver
    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:193)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:573)
    at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:482)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at org.openqa.selenium.support.events.EventFiringWebDriver$2.invoke(EventFiringWebDriver.java:101)
    at com.sun.proxy.$Proxy2.executeScript(Unknown Source)
    at org.openqa.selenium.support.events.EventFiringWebDriver.executeScript(EventFiringWebDriver.java:213)
    at org.openqa.selenium.remote.server.handler.ExecuteScript.call(ExecuteScript.java:55)
    at org.openqa.selenium.remote.server.handler.ExecuteScript.call(ExecuteScript.java:1)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:170)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Reported by friedhoeben on 2014-07-31 09:06:41

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

anyone got the solution for this? 
i m also facing same issue.
Driver type=RemoteDriver, OS= Windows 7, IE= 11.
However same script is working fine if I use local IE Driver in the OS= Windows 7,
IE= 11.
I think, issue is with RemoteDriver.

Reported by helpothersnlearn on 2014-10-09 00:41:42

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

i also got the same issue, is any find the solution please attach here

Reported by Jeyaprakashav on 2014-11-11 05:18:01

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I have seen similar issue in IE11 after few runs, Initially it was working fine. Now
i am facing following error consistently

Exception in executing javascript with execute_script method
Error while executing command: An unknown server-side error occurred while proce
ssing the command.: JavaScript error (WARNING: The server did not provide any st
acktrace information)
Command duration or timeout: 2.41 seconds
Build info: version: '2.43.0', revision: '597b76b', time: '2014-09-09 20:52:14'
System info: host: 'WIn8-1', ip: '192.168.123.200', os.name: 'Windows 8.1', os.a
rch: 'amd64', os.version: '6.3', java.version: '1.7.0_71'
Session ID: 97c909d8-2c29-40f2-85c8-6f40befdc7c8
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0
, ignoreZoomSetting=false, enablePersistentHover=false, ie.ensureCleanSession=fa
lse, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAl
ertBehaviour=dismiss, version=11, ie.usePerProcessProxy=false, cssSelectorsEnabl
ed=true, ignoreProtectedModeSettings=false, requireWindowFocus=false, handlesAle
rts=true, initialBrowserUrl=http://localhost:29687/, ie.forceCreateProcessApi=fa
lse, nativeEvents=false, browserAttachTimeout=0, ie.browserCommandLineSwitches=,
 takesScreenshot=true}]

Any suggestions?

Reported by kvyshak.888 on 2014-12-19 06:08:25

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I got this issue because of Windows update related to Internet Explorer 11(KB3025390)
applied on 18th Dec, I uninstalled that update for now to make my test run.

Reported by kvyshak.888 on 2014-12-22 13:13:14

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Yes, I have the same issue, and WebDriver works after uninstalling KB3025390.


org.openqa.selenium.WebDriverException: JavaScript error (WARNING: The server did not
provide any stacktrace information)
Command duration or timeout: 82 milliseconds
Build info: version: '2.44.0', revision: '76d78cf323ce037c5f92db6c1bba601c2ac43ad8',
time: '2014-10-23 13:11:40'
System info: host: 'werum2231', ip: '172.20.111.31', os.name: 'Windows 7', os.arch:
'amd64', os.version: '6.1', java.version: '1.7.0_67'
Session ID: 0d59a6b4-aac4-4604-9a39-a2c4ad1e7000
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false,
enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer,
enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=11, ie.usePerProcessProxy=false,
ignoreProtectedModeSettings=false, cssSelectorsEnabled=true, requireWindowFocus=false,
initialBrowserUrl=http://localhost:9760/, handlesAlerts=true, ie.forceCreateProcessApi=false,
nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}]

Reported by asashour@yahoo.com on 2015-01-14 12:17:55

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I too had the org.openqa.selenium.WebDriverException: JavaScript error (WARNING: The
server did not provide any stacktrace information)exception and uninstalling KB3025390
resolved the problem

Reported by fijijavis on 2015-01-29 17:35:15

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Hi All,

Even i am facing this issue IE11.
org.openqa.selenium.WebDriverException: JavaScript error (WARNING: The server did not
provide any stacktrace information)

Step description:

- Click on a link in IE window
- new window get opens
- switch to new window and close the window.
Observation: org.openqa.selenium.WebDriverException: JavaScript error (WARNING: The
server did not provide any stacktrace information)

Please help me. As it is very urgent for me.

Reported by prasadpg.te on 2015-03-24 09:02:31

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Same error here:
org.openqa.selenium.WebDriverException: JavaScript error (WARNING: The server did not
provide any stacktrace information)

With:
Build info: version: '2.46.0', revision: '87c69e2', time: '2015-06-04 16:17:10'
... os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_40'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver

And with:
18:11:53 Build info: version: '2.46.0', revision: '87c69e2', time: '2015-06-04 16:17:10'
... '10.16.107.188', os.name: 'Windows Server 2008 R2', os.arch: 'amd64', os.version:
'6.1', java.version: '1.7.0_45'

I tried the regedit modifications of FEATURE_BFCACHE and FEATURE_DISABLE_INTERNAL_SECURITY_MANAGER
and 'any kind' of capabilities but with no look.


Please help me. As it is very urgent for me.


Reported by sergio@sacristan.com.es on 2015-08-01 16:34:32

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 17:46:34

  • Labels added: Restrict-AddIssueComment-Commit

@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