Skip to content

Commit cba184c

Browse files
committed
fix(tests): adjust WebDriverWait timeout to 30 seconds
1 parent 751119f commit cba184c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/io/github/burakkaygusuz/tests/TestBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import io.github.burakkaygusuz.listeners.CustomTestListener;
55
import io.github.burakkaygusuz.services.WebElementService;
66
import io.github.burakkaygusuz.utils.PropertyUtil;
7-
87
import org.apache.logging.log4j.ThreadContext;
98
import org.openqa.selenium.WebDriver;
109
import org.openqa.selenium.support.ui.WebDriverWait;
@@ -34,10 +33,11 @@ public void setUp(String browser) throws MalformedURLException, URISyntaxExcepti
3433
.enableHeadless()
3534
.enableTracing(false)
3635
.build();
36+
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(0));
3737
driver.manage().window().maximize();
3838
driver.manage().timeouts().pageLoadTimeout(Duration.ofSeconds(30));
3939

40-
wait = new WebDriverWait(driver, Duration.ofSeconds(0));
40+
wait = new WebDriverWait(driver, Duration.ofSeconds(30));
4141
webElementService = new WebElementService(wait);
4242
}
4343

0 commit comments

Comments
 (0)