Search in sources :

Example 1 with TimeOutDuration

use of io.appium.java_client.pagefactory.TimeOutDuration in project java-client by appium.

the class TimeoutTest method setUp.

/**
 * The setting up.
 */
@Before
public void setUp() {
    setProperty(ChromeDriverService.CHROME_DRIVER_EXE_PROPERTY, getChromeDriver().getAbsolutePath());
    driver = new ChromeDriver();
    timeOutDuration = new TimeOutDuration(DEFAULT_TIMEOUT, DEFAULT_TIMEUNIT);
    initElements(new AppiumFieldDecorator(driver, timeOutDuration), this);
}
Also used : AppiumFieldDecorator(io.appium.java_client.pagefactory.AppiumFieldDecorator) ChromeDriver(org.openqa.selenium.chrome.ChromeDriver) ChromeDriverPathUtil.getChromeDriver(io.appium.java_client.ChromeDriverPathUtil.getChromeDriver) TimeOutDuration(io.appium.java_client.pagefactory.TimeOutDuration) Before(org.junit.Before)

Aggregations

ChromeDriverPathUtil.getChromeDriver (io.appium.java_client.ChromeDriverPathUtil.getChromeDriver)1 AppiumFieldDecorator (io.appium.java_client.pagefactory.AppiumFieldDecorator)1 TimeOutDuration (io.appium.java_client.pagefactory.TimeOutDuration)1 Before (org.junit.Before)1 ChromeDriver (org.openqa.selenium.chrome.ChromeDriver)1