Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
15.9-rc-1
-
None
-
Unknown
-
-
org.xwiki.officeimporter.test.ui.AllIT$NestedOfficeImporterIT.verifyImport{TestInfo}
Description
The test is flickering with the error message
Timed out after 10 seconds. Unable to locate the element
Stack trace:
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 com.sun.proxy.$Proxy85.click(Unknown Source) at org.xwiki.test.ui.po.BasePage.createPage(BasePage.java:351) at org.xwiki.officeimporter.test.ui.OfficeImporterIT.importFile(OfficeImporterIT.java:276) at org.xwiki.officeimporter.test.ui.OfficeImporterIT.importFile(OfficeImporterIT.java:257) at org.xwiki.officeimporter.test.ui.OfficeImporterIT.verifyImports(OfficeImporterIT.java:125) at org.xwiki.officeimporter.test.ui.OfficeImporterIT.verifyImport(OfficeImporterIT.java:97) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.ArrayList.forEach(ArrayList.java:1540) at java.base/java.util.ArrayList.forEach(ArrayList.java:1540) at java.base/java.util.ArrayList.forEach(ArrayList.java:1540) Caused by: org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//div[@id='tmCreate']/a[contains(@class, 'btn')]"} (Session info: chrome=118.0.5993.117) For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception Build info: version: '4.14.1', revision: '03f8ede370' System info: os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.0-16-cloud-amd64', java.version: '11.0.6' Driver info: org.openqa.selenium.remote.RemoteWebDriver Command: [1afd78b8af81c63542699f99fce11d47, findElement {using=xpath, value=//div[@id='tmCreate']/a[contains(@class, 'btn')]}] Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 118.0.5993.117, chrome: {chromedriverVersion: 118.0.5993.70 (e52f33f30b91..., userDataDir: /tmp/.org.chromium.Chromium...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:38223}, goog:loggingPrefs: {browser: ALL}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:bidiEnabled: false, se:cdp: ws://172.17.0.7:4444/sessio..., se:cdpVersion: 118.0.5993.117, 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, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true} Session ID: 1afd78b8af81c63542699f99fce11d47 at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:200) at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:133) at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:52) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:191) at org.openqa.selenium.remote.TracedCommandExecutor.execute(TracedCommandExecutor.java:51) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602) 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:359) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:353) at org.xwiki.test.ui.XWikiWebDriver.findElement(XWikiWebDriver.java:690) 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:71) at org.openqa.selenium.support.pagefactory.AjaxElementLocator.findElement(AjaxElementLocator.java:86) ... 11 more
A possible cause could be that the navigation from the delete outcome to the view page happens too fast and the browser doesn't follow it.