Details

      Description

      The JSF JSP Applicant portlet tester fails intermittently with the following error:

      Running com.liferay.faces.bridge.test.integration.demo.applicant.JSF_JSPApplicantPortletTester
      Tests run: 10, Failures: 0, Errors: 3, Skipped: 2, Time elapsed: 41.544 sec <<< FAILURE! - in com.liferay.faces.bridge.test.integration.demo.applicant.JSF_JSPApplicantPortletTester
      runApplicantPortletTest_C_FirstNameField(com.liferay.faces.bridge.test.integration.demo.applicant.JSF_JSPApplicantPortletTester)  Time elapsed: 3.54 sec  <<< ERROR!
      org.openqa.selenium.NoSuchElementException:
      Unable to locate element: {"method":"xpath","selector":"//input[contains(@id,':firstName')]"}
      Command duration or timeout: 6 milliseconds
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'kylestiemann-XPS-15-9530', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-139-generic', java.version: '1.8.0_172'
      Driver info: org.openqa.selenium.firefox.FirefoxDriver
      Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=45.0, platform=LINUX, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
      Session ID: 8514242b-bca0-42ce-95e2-ea28d03cd4b5
      *** Element info: {Using=xpath, value=//input[contains(@id,':firstName')]}
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
              at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
              at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
              at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
              at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:363)
              at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:500)
              at org.openqa.selenium.By$ByXPath.findElement(By.java:361)
              at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:355)
              at com.liferay.faces.test.selenium.browser.internal.BrowserDriverImpl.findElementByXpath(BrowserDriverImpl.java:304)
              at com.liferay.faces.test.selenium.browser.internal.BrowserDriverImpl.centerElementInCurrentWindow(BrowserDriverImpl.java:191)
              at com.liferay.faces.test.selenium.browser.internal.BrowserDriverImpl.clearElement(BrowserDriverImpl.java:204)
              at com.liferay.faces.bridge.test.integration.demo.applicant.JSF_JSPApplicantPortletTester.runApplicantPortletTest_C_FirstNameField(JSF_JSPApplicantPortletTester.java:82)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
              at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
              at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
              at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
              at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
              at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
              at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
              at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
              at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
              at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
              at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
              at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
              at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
              at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
              at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
              at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
              at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
              at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
              at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
              at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
      Caused by: org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":"//input[contains(@id,':firstName')]"}
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'kylestiemann-XPS-15-9530', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-139-generic', java.version: '1.8.0_172'
      Driver info: driver.version: unknown
              at <anonymous class>.FirefoxDriver.prototype.findElementInternal_(file:///tmp/anonymous1319430312563461589webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:10770)
              at <anonymous class>.FirefoxDriver.prototype.findElement(file:///tmp/anonymous1319430312563461589webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:10779)
              at <anonymous class>.DelayedCommand.prototype.executeInternal_/h(file:///tmp/anonymous1319430312563461589webdriver-profile/extensions/fxdriver@googlecode.com/components/command-processor.js:12661)
              at <anonymous class>.DelayedCommand.prototype.executeInternal_(file:///tmp/anonymous1319430312563461589webdriver-profile/extensions/fxdriver@googlecode.com/components/command-processor.js:12666)
              at <anonymous class>.DelayedCommand.prototype.execute/<(file:///tmp/anonymous1319430312563461589webdriver-profile/extensions/fxdriver@googlecode.com/components/command-processor.js:12608)
      
      runApplicantPortletTest_D_EmailValidation(com.liferay.faces.bridge.test.integration.demo.applicant.JSF_JSPApplicantPortletTester)  Timeelapsed: 0.025 sec  <<< ERROR!
      org.openqa.selenium.NoSuchElementException:
      Unable to locate element: {"method":"xpath","selector":"//input[contains(@id,':emailAddress')]"}
      Command duration or timeout: 23 milliseconds
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'kylestiemann-XPS-15-9530', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-139-generic', java.version: '1.8.0_172'
      Driver info: org.openqa.selenium.firefox.FirefoxDriver
      Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=45.0, platform=LINUX, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
      Session ID: 8514242b-bca0-42ce-95e2-ea28d03cd4b5
      *** Element info: {Using=xpath, value=//input[contains(@id,':emailAddress')]}
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
              at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
              at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
              at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
              at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:363)
              at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:500)
              at org.openqa.selenium.By$ByXPath.findElement(By.java:361)
              at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:355)
              at com.liferay.faces.test.selenium.browser.internal.BrowserDriverImpl.findElementByXpath(BrowserDriverImpl.java:304)
              at com.liferay.faces.test.selenium.browser.internal.BrowserDriverImpl.centerElementInCurrentWindow(BrowserDriverImpl.java:191)
              at com.liferay.faces.test.selenium.browser.internal.BrowserDriverImpl.sendKeysToElement(BrowserDriverImpl.java:436)
              at com.liferay.faces.bridge.test.integration.demo.applicant.JSF_JSPApplicantPortletTester.runApplicantPortletTest_D_EmailValidation(JSF_JSPApplicantPortletTester.java:92)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
              at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
              at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
              at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
              at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
              at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
              at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
              at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
              at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
              at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
              at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
              at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
              at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
              at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
              at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
              at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
              at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
              at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
              at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
              at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
      Caused by: org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":"//input[contains(@id,':emailAddress')]"}
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'kylestiemann-XPS-15-9530', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-139-generic', java.version: '1.8.0_172'
      Driver info: driver.version: unknown
              at <anonymous class>.FirefoxDriver.prototype.findElementInternal_(file:///tmp/anonymous1319430312563461589webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:10770)
              at <anonymous class>.FirefoxDriver.prototype.findElement(file:///tmp/anonymous1319430312563461589webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:10779)
              at <anonymous class>.DelayedCommand.prototype.executeInternal_/h(file:///tmp/anonymous1319430312563461589webdriver-profile/extensions/fxdriver@googlecode.com/components/command-processor.js:12661)
              at <anonymous class>.DelayedCommand.prototype.executeInternal_(file:///tmp/anonymous1319430312563461589webdriver-profile/extensions/fxdriver@googlecode.com/components/command-processor.js:12666)
              at <anonymous class>.DelayedCommand.prototype.execute/<(file:///tmp/anonymous1319430312563461589webdriver-profile/extensions/fxdriver@googlecode.com/components/command-processor.js:12608)
      
      runApplicantPortletTest_E_AllFieldsRequired(com.liferay.faces.bridge.test.integration.demo.applicant.JSF_JSPApplicantPortletTester)  Time elapsed: 0.029 sec  <<< ERROR!
      org.openqa.selenium.NoSuchElementException:
      Unable to locate element: {"method":"xpath","selector":"//input[contains(@id,':firstName')]"}
      Command duration or timeout: 29 milliseconds
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'kylestiemann-XPS-15-9530', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-139-generic', java.version: '1.8.0_172'
      Driver info: org.openqa.selenium.firefox.FirefoxDriver
      Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=45.0, platform=LINUX, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
      Session ID: 8514242b-bca0-42ce-95e2-ea28d03cd4b5
      *** Element info: {Using=xpath, value=//input[contains(@id,':firstName')]}
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
              at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
              at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
              at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
              at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:363)
              at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:500)
              at org.openqa.selenium.By$ByXPath.findElement(By.java:361)
              at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:355)
              at com.liferay.faces.test.selenium.browser.internal.BrowserDriverImpl.findElementByXpath(BrowserDriverImpl.java:304)
              at com.liferay.faces.test.selenium.browser.internal.BrowserDriverImpl.centerElementInCurrentWindow(BrowserDriverImpl.java:191)
              at com.liferay.faces.test.selenium.browser.internal.BrowserDriverImpl.clearElement(BrowserDriverImpl.java:204)
              at com.liferay.faces.bridge.test.integration.demo.applicant.JSF_JSPApplicantPortletTester.clearAllFields(JSF_JSPApplicantPortletTester.java:211)
              at com.liferay.faces.bridge.test.integration.demo.applicant.JSF_JSPApplicantPortletTester.runApplicantPortletTest_E_AllFieldsRequired(JSF_JSPApplicantPortletTester.java:110)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
              at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
              at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
              at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
              at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
              at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
              at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
              at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
              at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
              at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
              at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
              at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
              at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
              at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
              at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
              at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
              at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
              at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
              at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
              at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
      Caused by: org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":"//input[contains(@id,':firstName')]"}
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'kylestiemann-XPS-15-9530', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-139-generic', java.version: '1.8.0_172'
      Driver info: driver.version: unknown
              at <anonymous class>.FirefoxDriver.prototype.findElementInternal_(file:///tmp/anonymous1319430312563461589webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:10770)
              at <anonymous class>.FirefoxDriver.prototype.findElement(file:///tmp/anonymous1319430312563461589webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:10779)
              at <anonymous class>.DelayedCommand.prototype.executeInternal_/h(file:///tmp/anonymous1319430312563461589webdriver-profile/extensions/fxdriver@googlecode.com/components/command-processor.js:12661)
              at <anonymous class>.DelayedCommand.prototype.executeInternal_(file:///tmp/anonymous1319430312563461589webdriver-profile/extensions/fxdriver@googlecode.com/components/command-processor.js:12666)
              at <anonymous class>.DelayedCommand.prototype.execute/<(file:///tmp/anonymous1319430312563461589webdriver-profile/extensions/fxdriver@googlecode.com/components/command-processor.js:12608)
      
      
      Results :
      
      Tests in error:
        JSF_JSPApplicantPortletTester.runApplicantPortletTest_C_FirstNameField:82 » NoSuchElement
        JSF_JSPApplicantPortletTester.runApplicantPortletTest_D_EmailValidation:92 » NoSuchElement
        JSF_JSPApplicantPortletTester.runApplicantPortletTest_E_AllFieldsRequired:110->clearAllFields:211 » NoSuchElement
      
      Tests run: 10, Failures: 0, Errors: 3, Skipped: 2
      

      This problem appears more often in CI and on Liferay 7.1.

        Attachments

          Activity

            People

            • Assignee:
              kyle.stiemann Kyle Stiemann
              Reporter:
              kyle.stiemann Kyle Stiemann
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: