Skip to content

Commit 4b738e0

Browse files
committed
Fix timeout
1 parent f26d8f7 commit 4b738e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pogen4selenium-api/src/main/java/io/toolisticon/pogen4selenium/runtime/PageObjectUtilities.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public static WebElement waitForElementToBePresent(WebDriver driver, By by) {
129129
public static WebElement waitForElementToBePresent(WebDriver driver, By by, Duration timeout) {
130130
Wait<WebDriver> wait =
131131
new FluentWait<>(driver)
132-
.withTimeout(Duration.ofSeconds(15))
132+
.withTimeout(timeout)
133133
.pollingEvery(Duration.ofMillis(300))
134134
.ignoring(NoSuchElementException.class);
135135

0 commit comments

Comments
 (0)