blob: 81e50a7a0834d82479e7bd77540d8a8c335551bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package com.mavlushechka.a1qa.driverUtils;
import com.mavlushechka.a1qa.utils.JSONParser;
import org.openqa.selenium.support.ui.WebDriverWait;
import java.time.Duration;
public class WebDriverWaitFactory {
private WebDriverWaitFactory() {
}
public static WebDriverWait createWebDriverWait() {
return new WebDriverWait(WebDriverSingleton.getInstance(), Duration.ofSeconds(Integer.parseInt(JSONParser.parse("config", "webDriverWait.durationOfSeconds"))));
}
}
|