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 | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

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

    GitHub | 1 year 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 | 5 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

    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}]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 5557#192112921

    GitHub | 12 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}]
  6. 0

    In Jenkins haedless browser :org.openqa.selenium.WebDriverException: Error communicating with the remote browser. It may have died

    Stack Overflow | 3 months ago | sufiya
    org.openqa.selenium.WebDriverException: Error communicating with the remote browser. It may have died. Build info: version: '2.51.0', revision: '1af067d', time: '2016-02-05 19:15:17' System info: host: 'devui1.pdx.aws', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.32-573.7.1.el6.x86_64', java.version: '1.7.0_95' Driver info: driver.version: EventFiringWebDriver Session ID: b825d792-ea66-4422-9b19-fcbb29a0cb95 Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, handlesAlerts=true, nativeEvents=false, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=38.6.0}]Command duration or timeout: 742 millisecondsBuild info: version: '2.48.2', revision'41bccdd10cf2c0560f637404c2d96164b67d9d67', time: '2015-10-09 13:08:06' System info: host: 'Admin-HP', ip: '10.242.2.8', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_102' Driver info: org.openqa.selenium.remote.RemoteWebDriver Capabilities [{applicationCacheEnabled=true, rotatable=false, databaseEnabled=true, handlesAlerts=true, version=38.6.0, platform=LINUX, nativeEvents=false, acceptSslCerts=true, webdriver.remote.sessionid=e490f05e-8796-4539-b749-bc198990603d, locationContextEnabled=true, webStorageEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]Session ID: e490f05e-8796-4539-b749-bc198990603d *** Element info: {Using=xpath, value=//div[@data-path='assignmentValue']//a[@class='remove-filter']//span[@class='glyphicon glyphicon-remove-circle grey']}

  1. raytest 2 times, last 2 weeks ago
  2. andyglick 4 times, last 5 months ago
  3. rp 5 times, last 11 months ago
17 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