public static HttpCommandExecutor getProxyExecutor(URL url, Properties prop) { prop = decrypt(prop); String proxyHost = prop.getProperty("proxyHost"); int proxyPort = Integer.valueOf(prop.getProperty("proxyPort")); String proxyUserDomain = prop.getProperty("proxyUserDomain"); String proxyUser = prop.getProperty("proxyUser"); String proxyPassword = prop.getProperty("proxyPassword"); HttpClientBuilder builder = HttpClientBuilder.create(); HttpHost proxy = new HttpHost(proxyHost, proxyPort); CredentialsProvider credsProvider = new BasicCredentialsProvider(); credsProvider.setCredentials(new AuthScope(proxyHost, proxyPort), new NTCredentials(proxyUser, proxyPassword, getWorkstation(), proxyUserDomain)); if (url.getUserInfo() != null && !url.getUserInfo().isEmpty()) { credsProvider.setCredentials(new AuthScope(url.getHost(), (url.getPort() > 0 ? url.getPort() : url.getDefaultPort())), new UsernamePasswordCredentials(proxyUser, proxyPassword)); } builder.setProxy(proxy); builder.setDefaultCredentialsProvider(credsProvider); HttpClient.Factory factory = new SimpleHttpClientFactory(builder); return new HttpCommandExecutor(new HashMap<String, CommandInfo>(), url, factory); }
public EnhancedAndroidDriver(URL remoteAddress, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) { super(remoteAddress, httpClientFactory, desiredCapabilities); this.eventReporter = eventReporter; }
public EnhancedAndroidDriver(AppiumDriverLocalService service, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) { super(service, httpClientFactory, desiredCapabilities); this.eventReporter = eventReporter; }
public EnhancedAndroidDriver(AppiumServiceBuilder builder, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) { super(builder, httpClientFactory, desiredCapabilities); this.eventReporter = eventReporter; }
public EnhancedAndroidDriver(HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) { super(httpClientFactory, desiredCapabilities); this.eventReporter = eventReporter; }
EnhancedIOSDriver(URL remoteAddress, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) { super(remoteAddress, httpClientFactory, desiredCapabilities); this.eventReporter = eventReporter; }
EnhancedIOSDriver(AppiumDriverLocalService service, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) { super(service, httpClientFactory, desiredCapabilities); this.eventReporter = eventReporter; }
EnhancedIOSDriver(AppiumServiceBuilder builder, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) { super(builder, httpClientFactory, desiredCapabilities); this.eventReporter = eventReporter; }
EnhancedIOSDriver(HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) { super(httpClientFactory, desiredCapabilities); this.eventReporter = eventReporter; }
@Override public EnhancedAndroidDriver createAndroidDriver(URL remoteAddress, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) { return new EnhancedAndroidDriver(remoteAddress, httpClientFactory, desiredCapabilities, eventReporter); }
@Override public EnhancedAndroidDriver createAndroidDriver(AppiumDriverLocalService service, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) { return new EnhancedAndroidDriver(service, httpClientFactory, desiredCapabilities, eventReporter); }
@Override public EnhancedAndroidDriver createAndroidDriver(AppiumServiceBuilder builder, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) { return new EnhancedAndroidDriver(builder, desiredCapabilities, eventReporter); }
@Override public EnhancedAndroidDriver createAndroidDriver(HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) { return new EnhancedAndroidDriver(httpClientFactory, desiredCapabilities, eventReporter); }
@Override public EnhancedIOSDriver createIOSDriver(HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) { return new EnhancedIOSDriver(httpClientFactory, desiredCapabilities, eventReporter); }
@Override public EnhancedIOSDriver createIOSDriver(URL remoteAddress, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) { return new EnhancedIOSDriver(remoteAddress, httpClientFactory, desiredCapabilities, eventReporter); }
@Override public EnhancedIOSDriver createIOSDriver(AppiumDriverLocalService service, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) { return new EnhancedIOSDriver(service, httpClientFactory, desiredCapabilities, eventReporter); }
@Override public EnhancedIOSDriver createIOSDriver(AppiumServiceBuilder builder, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) { return new EnhancedIOSDriver(builder, desiredCapabilities, eventReporter); }
@Override public org.openqa.selenium.remote.http.HttpClient createClient(URL url) { return new ApacheHttpClient(builder.build(), url); }
public AppiumDriver(URL remoteAddress, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, Class<? extends JsonToWebElementConverter> converterClazz) { this(new AppiumCommandExecutor(MobileCommand.commandRepository, remoteAddress, httpClientFactory), desiredCapabilities, converterClazz); }
public AppiumDriver(AppiumDriverLocalService service, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, Class<? extends JsonToWebElementConverter> converterClazz) { this(new AppiumCommandExecutor(MobileCommand.commandRepository, service, httpClientFactory), desiredCapabilities, converterClazz); }
public AppiumDriver(AppiumServiceBuilder builder, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, Class<? extends JsonToWebElementConverter> converterClazz) { this(builder.build(), httpClientFactory, desiredCapabilities, converterClazz); }
public AppiumDriver(HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, Class<? extends JsonToWebElementConverter> converterClazz) { this(AppiumDriverLocalService.buildDefaultService(), httpClientFactory, desiredCapabilities, converterClazz); }
public AppiumCommandExecutor(Map<String, CommandInfo> additionalCommands, URL addressOfRemoteServer, HttpClient.Factory httpClientFactory) { super(additionalCommands, addressOfRemoteServer, httpClientFactory); service = null; }
public AppiumCommandExecutor(Map<String, CommandInfo> additionalCommands, DriverService service, HttpClient.Factory httpClientFactory) { super(additionalCommands, service.getUrl(), httpClientFactory); this.service = service; }