org.openqa.selenium.NoSuchElementException: Unable to find element with id == username (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 15.22 seconds For documentation on this error, please visit: /seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.43.0', revision: '597b76b', time: '2014-09-09 20:52:14' System info: host: 'AJITKUMAR-PC', ip: '192.168.1.5', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_20' Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{browserAttachTimeout=0, enablePersistentHover=true, ie.forceCreateProcessApi=false, ie.usePerProcessProxy=false, ignoreZoomSetting=false, handlesAlerts=true, version=11, platform=WINDOWS, nativeEvents=true, ie.ensureCleanSession=false, elementScrollBehavior=0, ie.browserCommandLineSwitches=, requireWindowFocus=false, browserName=internet explorer, initialBrowserUrl, takesScreenshot=true, javascriptEnabled=true, ignoreProtectedModeSettings=false, enableElementCacheCleanup=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=dismiss}] Session ID: 892cecb0-ba03-48f6-a29e-7eb7c56da813

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • dragAndDropBy() function Encountering Exception
    via Software Quality Assurance & Testing by Pratibha
    ,
  • I have configured jira test result reporter plugin with Jenkins. After build gets failed, reporting JIRA issue is done and build status is FAILURE. But issue is not seen anywhere in jira. Configured Jenkins and Jira integration process with this URL: https://github.com/jenkinsci/JiraTestResultReporter-plugin Versions: Jenkins ver. 1.580 JiraTestResultReporter plugin 1.0.5 JIRA: 6.4 Error: BUILD FAILED /home/hduser/workspace/Guidanz-Test/build.xml:48: The tests failed. Total time: 1 minute 7 seconds Build step 'Invoke Ant' marked build as failure [htmlpublisher] Archiving HTML reports... [htmlpublisher] Archiving at BUILD level /home/hduser/workspace/Guidanz-Test/test-output/html to /home/hduser/jobs/Guidanz-Test/builds/2014-10-15_14-44-30/htmlreports/HTML_Report TestNG Reports Processing: START Looking for TestNG results report in workspace using pattern: **/testng-results.xml Saving reports... Processing '/home/hduser/jobs/Guidanz-Test/builds/2014-10-15_14-44-30/testng/testng-results.xml' Failed Tests/Configs found. Marking build as UNSTABLE. TestNG Reports Processing: FINISH [JiraTestResultReporter] [INFO] Examining test results... [JiraTestResultReporter] [DEBUG] Build result is FAILURE [JiraTestResultReporter] [DEBUG] [JiraTestResultReporter] [INFO] Workspace is /home/hduser/workspace/Guidanz-Test [JiraTestResultReporter] [DEBUG] projectKey: QAA [JiraTestResultReporter] [DEBUG] errorDetails: Unable to locate element: {"method":"id","selector":"login-emailid"} Command duration or timeout: 30.09 seconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.43.1', revision: '5163bce', time: '2014-09-10 16:27:58' System info: host: 'master', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.11.0-15-generic', java.version: '1.7.0_67' Session ID: c0f59121-bcba-4a63-a0b2-e95542f618d6 Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, handlesAlerts=true, browserConnectionEnabled=true, webStorageEnabled=true, nativeEvents=false, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=26.0}] [JiraTestResultReporter] [DEBUG] fullName: unnamed.testUntitled [JiraTestResultReporter] [DEBUG] simpleName: unnamed [JiraTestResultReporter] [DEBUG] title: Case Result: testUntitled [JiraTestResultReporter] [DEBUG] packageName: (root) [JiraTestResultReporter] [DEBUG] name: testUntitled [JiraTestResultReporter] [DEBUG] className: login [JiraTestResultReporter] [DEBUG] failedSince: 0 [JiraTestResultReporter] [DEBUG] status: FAILED [JiraTestResultReporter] [DEBUG] age: 0 [JiraTestResultReporter] [DEBUG] ErrorStackTrace: org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"id","selector":"login-emailid"} Command duration or timeout: 30.09 seconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.43.1', revision: '5163bce', time: '2014-09-10 16:27:58' System info: host: 'master', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.11.0-15-generic', java.version: '1.7.0_67' Session ID: c0f59121-bcba-4a63-a0b2-e95542f618d6 Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, handlesAlerts=true, browserConnectionEnabled=true, webStorageEnabled=true, nativeEvents=false, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=26.0}] 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:204) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:352) at org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:393) at org.openqa.selenium.By$ById.findElement(By.java:214) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:344) at allpks.login.testUntitled(login.java:32) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84) at org.testng.internal.Invoker.invokeMethod(Invoker.java:714) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) at org.testng.TestRunner.privateRun(TestRunner.java:767) at org.testng.TestRunner.run(TestRunner.java:617) at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) at org.testng.SuiteRunner.run(SuiteRunner.java:240) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224) at org.testng.TestNG.runSuitesLocally(TestNG.java:1149) at org.testng.TestNG.run(TestNG.java:1057) at org.testng.TestNG.privateMain(TestNG.java:1364) at org.testng.TestNG.main(TestNG.java:1333) Caused by: org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"id","selector":"login-emailid"} For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.43.1', revision: '5163bce', time: '2014-09-10 16:27:58' System info: host: 'master', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.11.0-15-generic', java.version: '1.7.0_67' Driver info: driver.version: unknown at <anonymous class>.FirefoxDriver.prototype.findElementInternal_(file:///tmp/anonymous2488142102386434392webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:9618) at <anonymous class>.fxdriver.Timer.prototype.setTimeout/<.notify(file:///tmp/anonymous2488142102386434392webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:548) [JiraTestResultReporter] [DEBUG] affectedFile: org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"id","selector":"login-emailid"} Command duration or timeout: 30.09 seconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.43.1', revision: '5163bce', time: '2014-09-10 16:27:58' System info: host: 'master', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.11.0-15-generic', java.version: '1.7.0_67' Session ID: c0f59121-bcba-4a63-a0b2-e95542f618d6 Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, handlesAlerts=true, browserConnectionEnabled=true, webStorageEnabled=true, nativeEvents=false, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=26.0}] 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:204) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:352) at org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:393) at org.openqa.selenium.By$ById.findElement(By.java:214) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:344) at allpks.login.testUntitled(login.java:32) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84) at org.testng.internal.Invoker.invokeMethod(Invoker.java:714) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) at org.testng.TestRunner.privateRun(TestRunner.java:767) at org.testng.TestRunner.run(TestRunner.java:617) at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) at org.testng.SuiteRunner.run(SuiteRunner.java:240) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224) at org.testng.TestNG.runSuitesLocally(TestNG.java:1149) at org.testng.TestNG.run(TestNG.java:1057) at org.testng.TestNG.privateMain(TestNG.java:1364) at org.testng.TestNG.main(TestNG.java:1333) Caused by: org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"id","selector":"login-emailid"} For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.43.1', revision: '5163bce', time: '2014-09-10 16:27:58' System info: host: 'master', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.11.0-15-generic', java.version: '1.7.0_67' Driver info: driver.version: unknown at <anonymous class>.FirefoxDriver.prototype.findElementInternal_(file:///tmp/anonymous2488142102386434392webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:9618) at <anonymous class>.fxdriver.Timer.prototype.setTimeout/<.notify(file:///tmp/anonymous2488142102386434392webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:548) [JiraTestResultReporter] [DEBUG] ---------------------------- [JiraTestResultReporter] [DEBUG] Creating issue in project QAA at URL https://example.atlassian.net/rest/api/2/issue/ [JiraTestResultReporter] [INFO] Reporting issue. [JiraTestResultReporter] [INFO] Done. Email was triggered for: Always Sending email for trigger: Always Sending email to: example@gmail.com Finished: FAILURE
    via by Praveen Lakshmanan,
    • org.openqa.selenium.NoSuchElementException: Unable to find element with id == username (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 15.22 seconds For documentation on this error, please visit: /seleniumhq.org/exceptions
    • o_such_element.html Build info: version: '2.43.0', revision: '597b76b', time: '2014-09-09 20:52:14' System info: host: 'AJITKUMAR-PC', ip: '192.168.1.5', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_20' Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{browserAttachTimeout=0, enablePersistentHover=true, ie.forceCreateProcessApi=false, ie.usePerProcessProxy=false, ignoreZoomSetting=false, handlesAlerts=true, version=11, platform=WINDOWS, nativeEvents=true, ie.ensureCleanSession=false, elementScrollBehavior=0, ie.browserCommandLineSwitches=, requireWindowFocus=false, browserName=internet explorer, initialBrowserUrl, takesScreenshot=true, javascriptEnabled=true, ignoreProtectedModeSettings=false, enableElementCacheCleanup=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=dismiss}] Session ID: 892cecb0-ba03-48f6-a29e-7eb7c56da813 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:204) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:352) at org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:393) at org.openqa.selenium.By$ById.findElement(By.java:214) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:344) at ie.ieproject.main(ieproject.java:28)

    Users with the same issue

    raytest
    raytest3 times, last one,
    Unknown visitor1 times, last one,
    pnaranja
    pnaranja1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    8 more bugmates