From 32b9f31d955fac3a34e53c5ce6143adc7448a2d1 Mon Sep 17 00:00:00 2001 From: Leon Christopher Hunter Date: Sun, 24 Dec 2023 08:55:55 -0500 Subject: [PATCH] Update BrowserWaitInterface.java argument was being passed but not used --- .../browserhandler/waiting/BrowserWaitInterface.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/github/git_leon/leonium/browsertools/browserhandler/waiting/BrowserWaitInterface.java b/src/main/java/com/github/git_leon/leonium/browsertools/browserhandler/waiting/BrowserWaitInterface.java index eaf8d3f..eefb454 100644 --- a/src/main/java/com/github/git_leon/leonium/browsertools/browserhandler/waiting/BrowserWaitInterface.java +++ b/src/main/java/com/github/git_leon/leonium/browsertools/browserhandler/waiting/BrowserWaitInterface.java @@ -237,8 +237,8 @@ default WebElement forConditions(By by, SelectorWaitCondition... waitConditions) */ default boolean until(int waitSeconds, Function 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) condition)); } catch (ClassCastException cce) {