[ https://issues.apache.org/jira/browse/MYFACES-4564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17689603#comment-17689603 ]
Werner Punz edited comment on MYFACES-4564 at 2/16/23 8:23 AM: --------------------------------------------------------------- I think I found the issue, a timing issue as I expected... we have trigger -> findElement ... eval condition without timeouts or waits! A quick fix is to increase the implicit wait time window for findElement, it probably is very low! so if the element lookup fails it will fail. The "trigger" method already waits for the condition to be fulfilled but needs to take a timeout into consideration! (this is probably the second fix we need here) was (Author: werpu): I think I found the issue, a timing issue as I expected... we have trigger -> findElement ... eval condition without timeouts or waits! A quick fix is to increase the implicit wait time window for findElement, it probably is very low! also on a second note, the findElement might trigger before the update. We might also have to introduce a wait for condition pattern as second measure because if an element changes the test might triggger before the element is updated! I will overhaul the entire test to get rid of possible race conditions! > Test failure in the table test on RC5 build > ------------------------------------------- > > Key: MYFACES-4564 > URL: https://issues.apache.org/jira/browse/MYFACES-4564 > Project: MyFaces Core > Issue Type: Task > Affects Versions: 4.0.0-RC5 > Reporter: Werner Punz > Assignee: Werner Punz > Priority: Major > > Report by [~volosied] > [INFO] [ERROR] Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time > elapsed: 21.554 s <<< FAILURE! - in > org.apache.myfaces.core.integrationtests.ajax.IntegrationTest > [INFO] [ERROR] > org.apache.myfaces.core.integrationtests.ajax.IntegrationTest.testBasicTable > Time elapsed: 6.733 s <<< ERROR! > [INFO] org.openqa.selenium.TimeoutException: Expected condition failed: > waiting for > org.apache.myfaces.core.integrationtests.ajax.IntegrationTest$$Lambda$675/0x000000080085b040@2f54f746 > (tried for 0 second(s) with 500 milliseconds interval) > [INFO] at > org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:87) > ... > This is very likey a timeout issue, given the new ajax code is somewhat > slower than the older one. The test needs to be fixed to wait for a dom > condition with a higher timeout window. I will take over this! > -- This message was sent by Atlassian Jira (v8.20.10#820010)