org.openqa.selenium.NoSuchElementException: {"errorMessage":"Unable to find element with xpath './/*[@id='tab-rtmedia-bbpress']'","request":{"headers":{"Accept":"application/json, image/png","Connection":"Keep-Alive","Content-Length":"59","Content-Type":"application/json; charset=utf-8","Host":"localhost:25638"},"httpVersion":"1.1","method":"POST","post":"{\"using\":\"xpath\",\"value\":\".//*[@id='tab-rtmedia-bbpress']\"}","url":"/element","urlParsed":{"anchor":"","query":"","file":"element","directory":"/","path":"/element","relative":"/element","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/element","queryKey":{},"chunks":["element"]},"urlOriginal":"/session/991e39d0-38f7-11e4-bc18-493d4e2f927e/element"}} Command duration or timeout: 41.27 seconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.42.2', revision: '6a6995d31c7c56c340d6f45a76976d43506cd6cc', time: '2014-06-03 10:52:47' System info: host: 'rtcamp-pc', ip: '192.168.0.59', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_05' Driver info: org.openqa.selenium.phantomjs.PhantomJSDriver Capabilities [{applicationCacheEnabled=false, rotatable=false, handlesAlerts=false, databaseEnabled=false, version=1.9.7, platform=XP, browserConnectionEnabled=false, proxy={proxyType=direct}, nativeEvents=true, acceptSslCerts=false, driverVersion=1.1.0, locationContextEnabled=false, webStorageEnabled=false, browserName=phantomjs, takesScreenshot=true, driverName=ghostdriver, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: 991e39d0-38f7-11e4-bc18-493d4e2f927e

GitHub | juhi123 | 2 years ago
  1. 0

    phantomJS -not able to find elements

    GitHub | 2 years ago | juhi123
    org.openqa.selenium.NoSuchElementException: {"errorMessage":"Unable to find element with xpath './/*[@id='tab-rtmedia-bbpress']'","request":{"headers":{"Accept":"application/json, image/png","Connection":"Keep-Alive","Content-Length":"59","Content-Type":"application/json; charset=utf-8","Host":"localhost:25638"},"httpVersion":"1.1","method":"POST","post":"{\"using\":\"xpath\",\"value\":\".//*[@id='tab-rtmedia-bbpress']\"}","url":"/element","urlParsed":{"anchor":"","query":"","file":"element","directory":"/","path":"/element","relative":"/element","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/element","queryKey":{},"chunks":["element"]},"urlOriginal":"/session/991e39d0-38f7-11e4-bc18-493d4e2f927e/element"}} Command duration or timeout: 41.27 seconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.42.2', revision: '6a6995d31c7c56c340d6f45a76976d43506cd6cc', time: '2014-06-03 10:52:47' System info: host: 'rtcamp-pc', ip: '192.168.0.59', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_05' Driver info: org.openqa.selenium.phantomjs.PhantomJSDriver Capabilities [{applicationCacheEnabled=false, rotatable=false, handlesAlerts=false, databaseEnabled=false, version=1.9.7, platform=XP, browserConnectionEnabled=false, proxy={proxyType=direct}, nativeEvents=true, acceptSslCerts=false, driverVersion=1.1.0, locationContextEnabled=false, webStorageEnabled=false, browserName=phantomjs, takesScreenshot=true, driverName=ghostdriver, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: 991e39d0-38f7-11e4-bc18-493d4e2f927e
  2. 0

    Accepting Untrusted SSL certificate in WebDriver for Chrome and Firefox Browser

    abodeqa.com | 4 months ago
    org.openqa.selenium.WebDriverException: Error loading page (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 487 milliseconds Build info: version: ‘2.52.0’, revision: ‘4c2593c’, time: ‘2016-02-11 19:06:42’ System info: host: ‘JAINS13-L3’, ip: ‘10.121.65.215’, os.name: ‘Windows 7’, os.arch: ‘amd64’, os.version: ‘6.1’, java.version: ‘1.8.0_92’ Driver info: org.openqa.selenium.firefox.MarionetteDriver 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: a725b860-8eac-460e-b027-56aadf9ef3c6 Command duration or timeout: 1.16 seconds Build info: version: ‘2.53.0’, revision: ’35ae25b1534ae328c771e0856c93e187490ca824′, time: ‘2016-03-15 10:43:46’ System info: host: ‘JAINS13-L3’, ip: ‘10.121.65.215’, os.name: ‘Windows 7’, os.arch: ‘amd64’, os.version: ‘6.1’, java.version: ‘1.8.0_92’ Driver info: org.openqa.selenium.remote.RemoteWebDriver Capabilities [{rotatable=false, raisesAccessibilityExceptions=false, appBuildId=20160604131506, version=47.0, platform=XP, proxy={}, command_id=1, specificationLevel=0, acceptSslCerts=false, webdriver.remote.sessionid=317084d8-8a16-4cf2-ae0b-183fecf752ba, browserVersion=47.0, platformVersion=6.1, XULappId={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browserName=Firefox, takesScreenshot=true, takesElementScreenshot=true, javascriptEnabled=true, platformName=Windows_NT, device=desktop, cssSelectorsEnabled=true}] Session ID: 317084d8-8a16-4cf2-ae0b-183fecf752ba

    1 unregistered visitors

    Root Cause Analysis

    1. org.openqa.selenium.remote.ScreenshotException

      Screen shot has been taken Build info: version: '2.42.2', revision: '6a6995d31c7c56c340d6f45a76976d43506cd6cc', time: '2014-06-03 10:52:47' System info: host: 'rtcamp-pc', ip: '192.168.0.59', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_05' Driver info: driver.version: RemoteWebDriver

      at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed()
    2. Selenium
      RemoteWebDriver.findElementByXPath
      1. org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:125)
      2. org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554)
      3. org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:307)
      4. org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:404)
      4 frames
    3. selenium-api
      By$ByXPath.findElement
      1. org.openqa.selenium.By$ByXPath.findElement(By.java:357)
      1 frame
    4. Selenium
      RemoteWebDriver.findElement
      1. org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:299)
      1 frame
    5. testscripts
      bbPressSettingsTest.bbPressSettings
      1. testscripts.bbPressSettingsTest.bbPressSettings(bbPressSettingsTest.java:81)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    7. TestNG
      RemoteTestNG.main
      1. org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      2. org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
      3. org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
      4. org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
      5. org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      6. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      7. org.testng.TestRunner.privateRun(TestRunner.java:767)
      8. org.testng.TestRunner.run(TestRunner.java:617)
      9. org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
      10. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
      11. org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
      12. org.testng.SuiteRunner.run(SuiteRunner.java:240)
      13. org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      14. org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      15. org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
      16. org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
      17. org.testng.TestNG.run(TestNG.java:1057)
      18. org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
      19. org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
      20. org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
      20 frames