Details

      Description

      Steps to Reproduce:

      1. Deploy the JSF Showcase and test-setup-hook to Liferay 7.0 GA6+.
      2. Run the FormNonAjaxTester:
         (cd test/integration/ &&
         mvn verify -P selenium-jsf-showcase -Dit.test=*FormNonAjax*)
        

      If the bug still exists, the test will fail:

      -------------------------------------------------------
       T E S T S
      -------------------------------------------------------
      Running com.liferay.faces.test.showcase.form.FormNonAjaxTester
      12:16:16,054 INFO  [TesterBase:91] defaultShowcaseContext = /web/guest/jsf-showcase/-/jsf-tag
      12:16:16,057 INFO  [TesterBase:95] showcaseContext = /web/guest/jsf-showcase/-/jsf-tag
      Starting ChromeDriver 2.36.540471 (9c759b81a907e70363c6312294d30b6ccccc2752) on port 30920
      Only local connections are allowed.
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.92 sec <<< FAILURE! - in com.liferay.faces.test.showcase.form.FormNonAjaxTester
      runFormNonAjaxTest(com.liferay.faces.test.showcase.form.FormNonAjaxTester)  Time elapsed: 1.792 sec  <<< ERROR!
      org.openqa.selenium.ElementNotVisibleException:
      element not visible
        (Session info: headless chrome=65.0.3325.181)
        (Driver info: chromedriver=2.36.540471 (9c759b81a907e70363c6312294d30b6ccccc2752),platform=Linux 4.13.0-38-generic x86_64) (WARNING: The server did not provide any stacktrace information)
      Command duration or timeout: 21 milliseconds
      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.13.0-38-generic', java.version: '1.8.0_144'
      Driver info: org.openqa.selenium.chrome.ChromeDriver
      Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.36.540471 (9c759b81a907e70363c6312294d30b6ccccc2752), userDataDir=/tmp/.org.chromium.Chromium.JN6jR1}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=65.0.3325.181, platform=LINUX, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=false, acceptInsecureCerts=false, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, setWindowRect=true, unexpectedAlertBehaviour=}]
      Session ID: 0f344b63a9e196979c5091b8b9597602
              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.RemoteWebElement.execute(RemoteWebElement.java:327)
              at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:85)
              at com.liferay.faces.test.selenium.browser.internal.BrowserDriverImpl.clickElement(BrowserDriverImpl.java:212)
              at com.liferay.faces.test.showcase.form.FormNonAjaxTester.runFormNonAjaxTest(FormNonAjaxTester.java:38)
              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.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)
      
      
      Results :
      
      Tests in error:
        FormNonAjaxTester.runFormNonAjaxTest:38 ยป ElementNotVisible element not visibl...
      
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
      

      If the bug is fixed the test will pass.

      Note that the test passes manually.

        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:
                Resolved: