Search in sources :

Example 6 with AppiumServiceBuilder

use of io.appium.java_client.service.local.AppiumServiceBuilder in project java-client by appium.

the class BaseElementGenerationTest method check.

protected boolean check(Supplier<DesiredCapabilities> serverCapabilitiesSupplier, Supplier<Capabilities> clientCapabilitiesSupplier, BiPredicate<By, Class<? extends WebElement>> filter, By by, Class<? extends WebElement> clazz) {
    AppiumServiceBuilder builder = new AppiumServiceBuilder().withCapabilities(serverCapabilitiesSupplier.get());
    driver = new AppiumDriver<>(builder, clientCapabilitiesSupplier.get());
    return filter.test(by, clazz);
}
Also used : AppiumServiceBuilder(io.appium.java_client.service.local.AppiumServiceBuilder)

Aggregations

AppiumServiceBuilder (io.appium.java_client.service.local.AppiumServiceBuilder)6 File (java.io.File)5 DesiredCapabilities (org.openqa.selenium.remote.DesiredCapabilities)5 Test (org.junit.Test)4 Capabilities (org.openqa.selenium.Capabilities)4 AndroidDriver (io.appium.java_client.android.AndroidDriver)2 IOSDriver (io.appium.java_client.ios.IOSDriver)2 BeforeClass (org.junit.BeforeClass)1