org.openqa.selenium.WebDriverException: unknown error: unhandled inspector error: {"code":-32000,"message":"Cannot find context with specified id"} (Session info: chrome=51.0.2704.106) (Driver info: chromedriver=2.23.409687 (c46e862757edc04c06b1bd88724d15a5807b84d1),platform=Linux 3.13.0-74-generic x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 624 milliseconds Build info: version: '2.47.1', revision: 'unknown', time: '2015-07-30 11:02:44' System info: host: 'ip-172-31-36-46', ip: '172.31.36.46', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-74-generic', java.version: '1.7.0_101' *** Element info: {Using=id, value=ABC} Session ID: 261ad282e17a0d2d511b4f6e6fd0149c Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, browserName=chrome, chrome={userDataDir=/tmp/.org.chromium.Chromium.7Tpf1F, chromedriverVersion=2.23.409687 (c46e862757edc04c06b1bd88724d15a5807b84d1)}, networkConnectionEnabled=false, rotatable=false, locationContextEnabled=true, mobileEmulationEnabled=false, version=51.0.2704.106, takesHeapSnapshot=true, databaseEnabled=false, cssSelectorsEnabled=true, handlesAlerts=true, browserConnectionEnabled=false, webStorageEnabled=true, nativeEvents=true, hasTouchScreen=false, applicationCacheEnabled=false, takesScreenshot=true}]

GitHub | shashwat51 | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 1

    WebDriver Exception is being thrown in place of NoSuchElementException or TimeoutException for FindElement

    GitHub | 7 months ago | shashwat51
    org.openqa.selenium.WebDriverException: unknown error: unhandled inspector error: {"code":-32000,"message":"Cannot find context with specified id"} (Session info: chrome=51.0.2704.106) (Driver info: chromedriver=2.23.409687 (c46e862757edc04c06b1bd88724d15a5807b84d1),platform=Linux 3.13.0-74-generic x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 624 milliseconds Build info: version: '2.47.1', revision: 'unknown', time: '2015-07-30 11:02:44' System info: host: 'ip-172-31-36-46', ip: '172.31.36.46', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-74-generic', java.version: '1.7.0_101' *** Element info: {Using=id, value=ABC} Session ID: 261ad282e17a0d2d511b4f6e6fd0149c Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, browserName=chrome, chrome={userDataDir=/tmp/.org.chromium.Chromium.7Tpf1F, chromedriverVersion=2.23.409687 (c46e862757edc04c06b1bd88724d15a5807b84d1)}, networkConnectionEnabled=false, rotatable=false, locationContextEnabled=true, mobileEmulationEnabled=false, version=51.0.2704.106, takesHeapSnapshot=true, databaseEnabled=false, cssSelectorsEnabled=true, handlesAlerts=true, browserConnectionEnabled=false, webStorageEnabled=true, nativeEvents=true, hasTouchScreen=false, applicationCacheEnabled=false, takesScreenshot=true}]
  2. 1

    Build failed in Jenkins: Platform-FunctionalTests #55

    Google Groups | 11 months ago | Jenkins
    org.openqa.selenium.WebDriverException: unknown error: session deleted because of page crash from tab crashed (Session info: chrome=47.0.2526.106) (Driver info: chromedriver=2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf),platform=Linux 3.13.0-29-generic x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 180 milliseconds Build info: version: '2.39.0', revision: '14fa800511cc5d66d426e08b0b2ab926c7ed7398', time: '2013-12-16 13:18:38' System info: host: '3d43be742432', ip: '172.17.0.15', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-29-generic', java.version: '1.8.0_60' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=/tmp/.com.google.Chrome.gymod9}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, version=47.0.2526.106, platform=LINUX, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: faa3fb91af0dff3c1b580d1bcc1ea667
  3. 0

    Selenium 3: if Marionette Session gets closed in between tests then the Exception generated doesn't tell connection has been closed or something like that

    GitHub | 9 months ago | abhinav1708
    org.openqa.selenium.WebDriverException: Failed to decode response from marionette (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 19 milliseconds Build info: version: '2.42.2', revision: '75f266f', time: '2014-07-30 09:11:33' System info: host: 'NOI1-CIS616', ip: '192.168.56.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_73' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{rotatable=false, raisesAccessibilityExceptions=false, appBuildId=20160604131506, version=47.0, platform=XP, proxy={}, command_id=1, specificationLevel=0, acceptSslCerts=false, browserVersion=47.0, platformVersion=6.1, XULappId={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browserName=Firefox, takesScreenshot=true, takesElementScreenshot=true, platformName=Windows_NT, device=desktop}] Session ID: c0018882-0a3a-45f7-8a48-43fca8499b7b **\* Element info: {Using=css selector, value=#username}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    im using selenium firefox driver 3.3.1,selenium java 3.3.0,gecko driver 0.14 and firefox 52

    Stack Overflow | 6 days ago | John Doe
    org.openqa.selenium.WebDriverException: An unknown error has occurred Build info: version: '3.3.0', revision: 'b526bd5', time: '2017-03-07 11:22:11 -0800' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{moz:profile=C:\Users\PSHIVA~1\AppData\Local\Temp\rust_mozprofile.YtIQsNV4A5ix, rotatable=false, timeouts={implicit=0, page load=300000, script=30000}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0, moz:accessibilityChecks=false, acceptInsecureCerts=true, browserVersion=52.0.1, platformVersion=6.1, moz:processID=4368, browserName=firefox, platformName=windows_nt}] *** Element info: {Using=id, value=event_hosting_zip}
  6. 0

    Issue 1800 in selenium: RemoteWebDriver#findElement() can throw WebDriverException

    Google Groups | 6 years ago | sele...@googlecode.com
    org.openqa.selenium.WebDriverException: Connection refused

  1. Pilleo 3 times, last 2 weeks ago
  2. rp 1 times, last 3 days ago
  3. raytest 2 times, last 2 weeks ago
  4. andyglick 4 times, last 6 months ago
18 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

    unknown error: unhandled inspector error: {"code":-32000,"message":"Cannot find context with specified id"} (Session info: chrome=51.0.2704.106) (Driver info: chromedriver=2.23.409687 (c46e862757edc04c06b1bd88724d15a5807b84d1),platform=Linux 3.13.0-74-generic x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 624 milliseconds Build info: version: '2.47.1', revision: 'unknown', time: '2015-07-30 11:02:44' System info: host: 'ip-172-31-36-46', ip: '172.31.36.46', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-74-generic', java.version: '1.7.0_101' *** Element info: {Using=id, value=ABC} Session ID: 261ad282e17a0d2d511b4f6e6fd0149c Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, browserName=chrome, chrome={userDataDir=/tmp/.org.chromium.Chromium.7Tpf1F, chromedriverVersion=2.23.409687 (c46e862757edc04c06b1bd88724d15a5807b84d1)}, networkConnectionEnabled=false, rotatable=false, locationContextEnabled=true, mobileEmulationEnabled=false, version=51.0.2704.106, takesHeapSnapshot=true, databaseEnabled=false, cssSelectorsEnabled=true, handlesAlerts=true, browserConnectionEnabled=false, webStorageEnabled=true, nativeEvents=true, hasTouchScreen=false, applicationCacheEnabled=false, takesScreenshot=true}]

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    4 frames
  3. Selenium
    RemoteWebDriver.findElementById
    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:595)
    4. org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:348)
    5. org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:389)
    5 frames
  4. selenium-api
    By$ById.findElement
    1. org.openqa.selenium.By$ById.findElement(By.java:215)
    1 frame
  5. Selenium
    RemoteWebDriver.findElement
    1. org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:340)
    1 frame
  6. selenium-support
    FluentWait.until
    1. org.openqa.selenium.support.ui.ExpectedConditions.findElement(ExpectedConditions.java:861)
    2. org.openqa.selenium.support.ui.ExpectedConditions.access$000(ExpectedConditions.java:41)
    3. org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:205)
    4. org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:201)
    5. org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:209)
    5 frames