You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E2E testing system utilizes Selenium as the preferred framework. Indeed, using Selenium offers a wait function rather than relying on the Thread function. Additionally, implementing a try-catch block is often unnecessary.
How should we improve?
use explicit waits like: Wait<WebDriver> wait = new WebDriverWait(driver, Duration.ofSeconds(2)); not the Thread.Sleep
The text was updated successfully, but these errors were encountered:
zzzk1
changed the title
[Improvement] Use the implicitly wait feature provided by Selenium to replace Thread.Sleep
[Improvement] Use the explicit wait feature provided by Selenium to replace Thread.Sleep
Feb 25, 2025
What would you like to be improved?
E2E testing system utilizes Selenium as the preferred framework. Indeed, using Selenium offers a wait function rather than relying on the Thread function. Additionally, implementing a try-catch block is often unnecessary.
How should we improve?
use explicit waits like:
Wait<WebDriver> wait = new WebDriverWait(driver, Duration.ofSeconds(2));
not theThread.Sleep
The text was updated successfully, but these errors were encountered: