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);
}
Aggregations