Skip to content

Commit

Permalink
Update BrowserWaitInterface.java
Browse files Browse the repository at this point in the history
argument was being passed but not used
  • Loading branch information
Git-Leon authored Dec 24, 2023
1 parent a009e82 commit 32b9f31
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ default WebElement forConditions(By by, SelectorWaitCondition... waitConditions)
*/
default <T> boolean until(int waitSeconds, Function<WebDriver, T> condition) {
boolean outcome = false;
if (getWaitSeconds() > 0) {
WebDriverWait wait = new WebDriverWait(getDriver(), getWaitSeconds());
if (waitSeconds > 0) {
WebDriverWait wait = new WebDriverWait(getDriver(), waitSeconds);
try {
wait.until(ExpectedConditions.refreshed((ExpectedCondition<T>) condition));
} catch (ClassCastException cce) {
Expand Down

0 comments on commit 32b9f31

Please sign in to comment.