org.openqa.selenium.WebDriverException: A JavaScript error was encountered execu ting the findElement atom. (WARNING: The server did not provide any stacktrace i nformation) Command duration or timeout: 23 milliseconds Build info: version: '2.50.1', revision: 'd7fc91b', time: '2016-01-29 19:08:26' System info: host: 'WSUNJAPATEL7', ip: '192.168.236.247', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_75' *** Element info: {Using=xpath, value=//a[contains(@class,'cart-btn')]} Session ID: 617e306f-7168-47e8-abc6-ba1541c9f801 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0 , ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=fal se, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAle rtBehaviour=dismiss, version=10, pageLoadStrategy=normal, ie.usePerProcessProxy= false, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindo wFocus=false, initialBrowserUrl=http://localhost:7966/, handlesAlerts=true, ie.f orceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browse rCommandLineSwitches=, takesScreenshot=true}]

GitHub | jawlitkp | 10 months ago
  1. 0

    Critical IE (10,11)Issue:Exception: A JavaScript error was encountered executing the findElement atom

    GitHub | 10 months ago | jawlitkp
    org.openqa.selenium.WebDriverException: A JavaScript error was encountered execu ting the findElement atom. (WARNING: The server did not provide any stacktrace i nformation) Command duration or timeout: 23 milliseconds Build info: version: '2.50.1', revision: 'd7fc91b', time: '2016-01-29 19:08:26' System info: host: 'WSUNJAPATEL7', ip: '192.168.236.247', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_75' *** Element info: {Using=xpath, value=//a[contains(@class,'cart-btn')]} Session ID: 617e306f-7168-47e8-abc6-ba1541c9f801 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0 , ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=fal se, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAle rtBehaviour=dismiss, version=10, pageLoadStrategy=normal, ie.usePerProcessProxy= false, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindo wFocus=false, initialBrowserUrl=http://localhost:7966/, handlesAlerts=true, ie.f orceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browse rCommandLineSwitches=, takesScreenshot=true}]
  2. 0

    GitHub comment 2650#246927545

    GitHub | 3 months ago | ildar-aim
    org.openqa.selenium.WebDriverException: unknown error: unhandled inspector error: {"code":-32000,"message":"Cannot find context with specified id"} (Session info: chrome=53.0.2785.101) (Driver info: chromedriver=2.22,platform=Linux 4.7.2-1-ARCH x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 7.87 seconds Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58' System info: host: 'cormorant.crtdev.local', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.7.2-1-ARCH', java.version: '1.7.0_111' *** Element info: {Using=xpath, value=id("transactionCart")/span[2]/descendant::*/span} Session ID: 355c2e4b94b43e38cf9034ba430405d9 Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, browserName=chrome, chrome={userDataDir=/tmp/.org.chromium.Chromium.tmCLE7, chromedriverVersion=2.22}, rotatable=false, locationContextEnabled=true, mobileEmulationEnabled=false, version=53.0.2785.101, takesHeapSnapshot=true, cssSelectorsEnabled=true, databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, webStorageEnabled=true, nativeEvents=true, hasTouchScreen=false, applicationCacheEnabled=false, takesScreenshot=true}]
  3. 0

    Getting error as "org.openqa.selenium.WebDriverException: unknown error: bad inspector message....."

    GitHub | 4 months ago | GudiaRani
    org.openqa.selenium.WebDriverException: unknown error: bad inspector message: {"method":"Console.messageAdded","params":{"message":{"source":"console-api", "level":"log","text":"[object Object]","type":"log","url":"https://Application URL/scripts/scripts.eb4172d5.js","line":58,"column":23261, "parameters":[{"type":"object","className":"Object","description":"Object","objectId":"{\"injectedScriptId\":1,\"id\":9}", "preview":{"type":"object","description":"Object","overflow":false,"properties":[{"name":"Key","type":"string","value":"BusinessGroup"}, {"name":"Value","type":"string","value":"\u3782\u20D2\u0A60\u9E20\u5C20\u2102\uB819\uC096\u03B0\u8A50\u7101\u380F\u6480\u0E20\u0342j\u0218\u0364\u8470\u0DAAF\uAA6D\u9E46\u9024\u8013\u3821\u7003\u100F\u2144\u3E08\u00CC\u23E7\uCF40\u32B1\u7C01\u8C20\u0614\u2029\uBC29\u33E6\u2956\uB340\u116C\uEBF1\uA120\u05CD\u210C\uC203\uF21B\u90A9\u2026\uDB20\u1B6C\u2D8E\u8BB7\u12D8\u5FDB\uC204\uEF79\uB65D\u770E\uD31F\uE19D\u4CAC\u06D2\u34D6\u0016\u910A\u3B9F\u73A8\uEDFA\uBD67\u7AD5\uDF80\u3F7C\u3681\uC8D2~\uEB5F\u518D\uB3A9\u6300\u0BA9\u4050\u37F4\u92D0\u1843\u4E1A\u048B\uF037\uF3A0\u8410\u8249\u5208\u5715\u40B6\u400D\u6402\u8420\u0000"}, {"name":"s_key","type":"string","value":"master_lookupdata/BusinessGroup"}]}}],"stack":{"callFrames":[ {"functionName":"","scriptId":"49","url":"https://Application URL/scripts/scripts.eb4172d5.js","lineNumber":58,"columnNumber":23261}, {"functionName":"","scriptId":"49","url":"https://Application URL/scripts/scripts.eb4172d5.js", "lineNumber":53,"columnNumber":26469},{"functionName":"","scriptId":"49","url":"https://Application URL/scripts/scripts.eb4172d5.js", "lineNumber":54,"columnNumber":20714}]},"timestamp":1470145104.94625,"executionContextId":1}}} (Session info: chrome=52.0.2743.82) (Driver info: chromedriver=2.22.397933 (1cab651507b88dec79b2b2a22d1943c01833cc1b),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 9 milliseconds Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 16:57:40' System info: host: 'Cd390-B21RVS1', ip: '10.10.53.102', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_51' *** Element info: {Using=xpath, value=//*[@id='menu_list']/li[2]/a} Session ID: 8f4446bd7f9b1937154b62b30486e221 Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities [{platform=XP, acceptSslCerts=true, javascriptEnabled=true, browserName=chrome, chrome={userDataDir=C:\Users\XXX\AppData\Local\Temp\scoped_dir5184_20574, chromedriverVersion=2.22.397933 (1cab651507b88dec79b2b2a22d1943c01833cc1b)}, rotatable=false, locationContextEnabled=true, mobileEmulationEnabled=false, version=52.0.2743.82, takesHeapSnapshot=true, cssSelectorsEnabled=true, databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, webStorageEnabled=true, nativeEvents=true, hasTouchScreen=false, applicationCacheEnabled=false, takesScreenshot=true}]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issue 5557 in selenium: Element is not currently visible and so may not be interacted with selenium-webdriver (2.32.1)

    Google Groups | 4 years ago | sele...@googlecode.com
    org.openqa.selenium.WebDriverException: [JavaScript Error: "e is null" {file: "file:///C:/Users/AppData/Local/Temp/anonymous8707730166287218402webdriver-profile/extensions/fxdriver@googlecode.com/components/command-processor.js" line: 7854}]'[JavaScript Error: "e is null" {file: "file:///C:/Users/AppData/Local/Temp/anonymous8707730166287218402webdriver-profile/extensions/fxdriver@googlecode.com/components/command-processor.js" line: 7854}]' when calling method: [nsICommandProcessor::execute] Command duration or timeout: 52 milliseconds Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{platform=WINDOWS, acceptSslCerts=true, javascriptEnabled=true, browserName=firefox, rotatable=false, locationContextEnabled=true, version=33.0.3, cssSelectorsEnabled=true, databaseEnabled=true, handlesAlerts=true, nativeEvents=false, webStorageEnabled=true, applicationCacheEnabled=true, takesScreenshot=true}]
  6. 0

    GitHub comment 5557#192112921

    GitHub | 9 months ago | lukeis
    org.openqa.selenium.WebDriverException: [JavaScript Error: "e is null" {file: "file:///C:/Users/AppData/Local/Temp/anonymous8707730166287218402webdriver-profile/extensions/fxdriver@googlecode.com/components/command-processor.js" line: 7854}]'[JavaScript Error: "e is null" {file: "file:///C:/Users/AppData/Local/Temp/anonymous8707730166287218402webdriver-profile/extensions/fxdriver@googlecode.com/components/command-processor.js" line: 7854}]' when calling method: [nsICommandProcessor::execute] Command duration or timeout: 52 milliseconds Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{platform=WINDOWS, acceptSslCerts=true, javascriptEnabled=true, browserName=firefox, rotatable=false, locationContextEnabled=true, version=33.0.3, cssSelectorsEnabled=true, databaseEnabled=true, handlesAlerts=true, nativeEvents=false, webStorageEnabled=true, applicationCacheEnabled=true, takesScreenshot=true}]

  1. andyglick 2 times, last 3 months ago
  2. rp 5 times, last 8 months ago
15 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.openqa.selenium.WebDriverException

    A JavaScript error was encountered execu ting the findElement atom. (WARNING: The server did not provide any stacktrace i nformation) Command duration or timeout: 23 milliseconds Build info: version: '2.50.1', revision: 'd7fc91b', time: '2016-01-29 19:08:26' System info: host: 'WSUNJAPATEL7', ip: '192.168.236.247', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_75' *** Element info: {Using=xpath, value=//a[contains(@class,'cart-btn')]} Session ID: 617e306f-7168-47e8-abc6-ba1541c9f801 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0 , ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=fal se, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAle rtBehaviour=dismiss, version=10, pageLoadStrategy=normal, ie.usePerProcessProxy= false, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindo wFocus=false, initialBrowserUrl=http://localhost:7966/, handlesAlerts=true, ie.f orceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browse rCommandLineSwitches=, takesScreenshot=true}]

    at sun.reflect.GeneratedConstructorAccessor9.newInstance()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.GeneratedConstructorAccessor9.newInstance(Unknown Source)
    2. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    3. java.lang.reflect.Constructor.newInstance(Unknown Source)
    3 frames
  3. Selenium
    RemoteWebDriver.findElementByXPath
    1. org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
    2. org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
    3. org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
    4. org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:363)
    5. org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:500)
    5 frames
  4. selenium-api
    By$ByXPath.findElement
    1. org.openqa.selenium.By$ByXPath.findElement(By.java:361)
    1 frame
  5. Selenium
    RemoteWebDriver.findElement
    1. org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:355)
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    3. java.lang.reflect.Method.invoke(Unknown Source)
    3 frames
  7. selenium-support
    EventFiringWebDriver$2.invoke
    1. org.openqa.selenium.support.events.EventFiringWebDriver$2.invoke(EventFiringWebDriver.java:103)
    1 frame
  8. com.sun.proxy
    $Proxy1.findElement
    1. com.sun.proxy.$Proxy1.findElement(Unknown Source)
    1 frame
  9. selenium-support
    EventFiringWebDriver.findElement
    1. org.openqa.selenium.support.events.EventFiringWebDriver.findElement(EventFiringWebDriver.java:188)
    1 frame
  10. selenium-server
    FindElement.call
    1. org.openqa.selenium.remote.server.handler.FindElement.call(FindElement.java:48)
    2. org.openqa.selenium.remote.server.handler.FindElement.call(FindElement.java:1)
    2 frames
  11. Java RT
    FutureTask.run
    1. java.util.concurrent.FutureTask.run(Unknown Source)
    1 frame
  12. selenium-server
    DefaultSession$1.run
    1. org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
    1 frame
  13. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    3. java.lang.Thread.run(Unknown Source)
    3 frames