Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-1865

Flicker when waiting for JQuery to be ready in view mode

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      We got the following timeout flicker in ActiveInstallsIT#verifyActiveInstalls:

      org.openqa.selenium.TimeoutException: 
      Expected condition failed: waiting for org.xwiki.test.ui.XWikiWebDriver$1@7f012923 (tried for 10 second(s) with 500 milliseconds interval)
      Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
      System info: host: '1097918b73bf', ip: '172.17.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '4.9.165-xxxx-std-ipv6-64', java.version: '1.8.0_232'
      Driver info: org.xwiki.test.ui.XWikiWebDriver
      Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 69.0.3, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20191009172106, moz:geckodriverVersion: 0.26.0, moz:headless: false, moz:processID: 8884, moz:profile: /tmp/rust_mozprofilefGP6Yj, moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, platformVersion: 4.9.165-xxxx-std-ipv6-64, rotatable: false, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
      Session ID: bf45f190-a45f-46e5-9389-54ce7f4bc8db
      	at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:95)
      	at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:272)
      	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.xwiki.test.ui.XWikiWebDriver.waitUntilCondition(XWikiWebDriver.java:226)
      	at org.xwiki.test.ui.XWikiWebDriver.waitUntilJavascriptCondition(XWikiWebDriver.java:626)
      	at org.xwiki.test.ui.po.BasePage.waitUntilPageJSIsLoaded(BasePage.java:592)
      	at org.xwiki.test.ui.po.BasePage.<init>(BasePage.java:121)
      	at org.xwiki.test.ui.po.ViewPage.<init>(ViewPage.java:40)
      	at org.xwiki.panels.test.po.ApplicationsPanel.clickApplication(ApplicationsPanel.java:61)
      

      The problem is that the clickApplication() method calls the BasePage constructor which does a wait for JQuery (waitUntilPageJSIsLoaded()) and it times out:

              // JQuery and dependencies
              // JQuery dropdown plugin needed for the edit button's dropdown menu.
              getDriver().waitUntilJavascriptCondition("return window.jQuery != null && window.jQuery().dropdown != null");
      

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: