Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-23306

UserProfileIT.changeAvatarImage is flickering

    XMLWordPrintable

Details

    • Unknown
    • org.xwiki.user.test.ui.AllIT$NestedUserProfileIT#changeAvatarImage(TestConfiguration)

    Description

      Error Message

      Timed out after 10 seconds. Unable to locate the element
      

      Stacktrace

      org.openqa.selenium.NoSuchElementException: Timed out after 10 seconds. Unable to locate the element
      	at org.openqa.selenium.support.pagefactory.AjaxElementLocator.findElement(AjaxElementLocator.java:90)
      	at org.openqa.selenium.support.pagefactory.internal.LocatingElementHandler.invoke(LocatingElementHandler.java:38)
      	at jdk.proxy2/jdk.proxy2.$Proxy106.click(Unknown Source)
      	at org.xwiki.user.test.po.ProfileUserProfilePage.changeAvatarImage(ProfileUserProfilePage.java:154)
      	at org.xwiki.user.test.ui.UserProfileIT.changeAvatarImage(UserProfileIT.java:177)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
      	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      Caused by: org.openqa.selenium.NoSuchElementException: Unable to locate element: //div[@id='avatar']//a
      For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
      Build info: version: '4.32.0', revision: 'd17c8aa950'
      System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.1.0-33-cloud-amd64', java.version: '17.0.15'
      Driver info: org.openqa.selenium.remote.RemoteWebDriver
      Command: [35a4ac8e-7ac3-42fe-9b44-34fd39c2824b, findElement {using=xpath, value=//div[@id='avatar']//a}]
      Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 139.0.1, container:hostname: d35abc1e8e30, moz:accessibilityChecks: false, moz:buildID: 20250529122813, moz:firefoxOptions: {prefs: {dom.disable_beforeunload: false, remote.active-protocols: 1, remote.events.async.enabled: false}}, moz:geckodriverVersion: 0.36.0, moz:headless: false, moz:platformVersion: 6.1.0-33-cloud-amd64, moz:processID: 173, moz:profile: /tmp/rust_mozprofilezb8LNt, moz:shutdownTimeout: 60000, moz:webdriverClick: true, moz:windowless: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:cdpEnabled: false, se:containerName: d35abc1e8e30, se:gridWebSocketUrl: ws://127.0.0.1:19075/sessio..., se:noVncPort: 7900, se:vnc: ws://172.17.0.7:4444/sessio..., se:vncEnabled: true, se:vncLocalAddress: ws://172.17.0.7:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: ignore, userAgent: Mozilla/5.0 (X11; Linux x86..., webSocketUrl: ws://172.17.0.7:4444/sessio...}
      Session ID: 35a4ac8e-7ac3-42fe-9b44-34fd39c2824b
      	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
      	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
      	at org.openqa.selenium.remote.ErrorCodec.decode(ErrorCodec.java:167)
      	at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:138)
      	at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:50)
      	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:215)
      	at org.openqa.selenium.remote.TracedCommandExecutor.execute(TracedCommandExecutor.java:53)
      	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)
      	at org.openqa.selenium.remote.ElementLocation$ElementFinder$2.findElement(ElementLocation.java:165)
      	at org.openqa.selenium.remote.ElementLocation.findElement(ElementLocation.java:59)
      	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:368)
      	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:362)
      	at org.xwiki.test.ui.XWikiWebDriver.findElement(XWikiWebDriver.java:714)
      	at org.openqa.selenium.support.pagefactory.DefaultElementLocator.findElement(DefaultElementLocator.java:68)
      	at org.openqa.selenium.support.pagefactory.AjaxElementLocator.access$001(AjaxElementLocator.java:38)
      	at org.openqa.selenium.support.pagefactory.AjaxElementLocator$SlowLoadingElement.isLoaded(AjaxElementLocator.java:156)
      	at org.openqa.selenium.support.ui.SlowLoadableComponent.get(SlowLoadableComponent.java:79)
      	at org.openqa.selenium.support.pagefactory.AjaxElementLocator.findElement(AjaxElementLocator.java:86)
      	... 8 more
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: