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) {