Java 类org.openqa.selenium.remote.http.HttpClient 实例源码

项目:Cognizant-Intelligent-Test-Scripter    文件:RemoteProxy.java   
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);

    }
项目:AppCenter-Test-Appium-Java-Extensions    文件:EnhancedAndroidDriver.java   
public EnhancedAndroidDriver(URL remoteAddress, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) {
    super(remoteAddress, httpClientFactory, desiredCapabilities);
    this.eventReporter = eventReporter;
}
项目:AppCenter-Test-Appium-Java-Extensions    文件:EnhancedAndroidDriver.java   
public EnhancedAndroidDriver(AppiumDriverLocalService service, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) {
    super(service, httpClientFactory, desiredCapabilities);
    this.eventReporter = eventReporter;
}
项目:AppCenter-Test-Appium-Java-Extensions    文件:EnhancedAndroidDriver.java   
public EnhancedAndroidDriver(AppiumServiceBuilder builder, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) {
    super(builder, httpClientFactory, desiredCapabilities);
    this.eventReporter = eventReporter;
}
项目:AppCenter-Test-Appium-Java-Extensions    文件:EnhancedAndroidDriver.java   
public EnhancedAndroidDriver(HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) {
    super(httpClientFactory, desiredCapabilities);
    this.eventReporter = eventReporter;
}
项目:AppCenter-Test-Appium-Java-Extensions    文件:EnhancedIOSDriver.java   
EnhancedIOSDriver(URL remoteAddress, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) {
    super(remoteAddress, httpClientFactory, desiredCapabilities);
    this.eventReporter = eventReporter;
}
项目:AppCenter-Test-Appium-Java-Extensions    文件:EnhancedIOSDriver.java   
EnhancedIOSDriver(AppiumDriverLocalService service, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) {
    super(service, httpClientFactory, desiredCapabilities);
    this.eventReporter = eventReporter;
}
项目:AppCenter-Test-Appium-Java-Extensions    文件:EnhancedIOSDriver.java   
EnhancedIOSDriver(AppiumServiceBuilder builder, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) {
    super(builder, httpClientFactory, desiredCapabilities);
    this.eventReporter = eventReporter;
}
项目:AppCenter-Test-Appium-Java-Extensions    文件:EnhancedIOSDriver.java   
EnhancedIOSDriver(HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) {
    super(httpClientFactory, desiredCapabilities);
    this.eventReporter = eventReporter;
}
项目:AppCenter-Test-Appium-Java-Extensions    文件:LocalProvider.java   
@Override
public EnhancedAndroidDriver createAndroidDriver(URL remoteAddress, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) {
    return new EnhancedAndroidDriver(remoteAddress, httpClientFactory, desiredCapabilities, eventReporter);
}
项目:AppCenter-Test-Appium-Java-Extensions    文件:LocalProvider.java   
@Override
public EnhancedAndroidDriver createAndroidDriver(AppiumDriverLocalService service, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) {
    return new EnhancedAndroidDriver(service, httpClientFactory, desiredCapabilities, eventReporter);
}
项目:AppCenter-Test-Appium-Java-Extensions    文件:LocalProvider.java   
@Override
public EnhancedAndroidDriver createAndroidDriver(AppiumServiceBuilder builder, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) {
    return new EnhancedAndroidDriver(builder, desiredCapabilities, eventReporter);
}
项目:AppCenter-Test-Appium-Java-Extensions    文件:LocalProvider.java   
@Override
public EnhancedAndroidDriver createAndroidDriver(HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) {
    return new EnhancedAndroidDriver(httpClientFactory, desiredCapabilities, eventReporter);
}
项目:AppCenter-Test-Appium-Java-Extensions    文件:LocalProvider.java   
@Override
public EnhancedIOSDriver createIOSDriver(HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) {
    return new EnhancedIOSDriver(httpClientFactory, desiredCapabilities, eventReporter);
}
项目:AppCenter-Test-Appium-Java-Extensions    文件:LocalProvider.java   
@Override
public EnhancedIOSDriver createIOSDriver(URL remoteAddress, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) {
    return new EnhancedIOSDriver(remoteAddress, httpClientFactory, desiredCapabilities, eventReporter);
}
项目:AppCenter-Test-Appium-Java-Extensions    文件:LocalProvider.java   
@Override
public EnhancedIOSDriver createIOSDriver(AppiumDriverLocalService service, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) {
    return new EnhancedIOSDriver(service, httpClientFactory, desiredCapabilities, eventReporter);
}
项目:AppCenter-Test-Appium-Java-Extensions    文件:LocalProvider.java   
@Override
public EnhancedIOSDriver createIOSDriver(AppiumServiceBuilder builder, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) {
    return new EnhancedIOSDriver(builder, desiredCapabilities, eventReporter);
}
项目:Cognizant-Intelligent-Test-Scripter    文件:RemoteProxy.java   
@Override
public org.openqa.selenium.remote.http.HttpClient createClient(URL url) {
    return new ApacheHttpClient(builder.build(), url);
}
项目:menggeqa    文件:AppiumDriver.java   
public AppiumDriver(URL remoteAddress, HttpClient.Factory httpClientFactory,
    Capabilities desiredCapabilities,
                    Class<? extends JsonToWebElementConverter> converterClazz) {
    this(new AppiumCommandExecutor(MobileCommand.commandRepository, remoteAddress,
        httpClientFactory), desiredCapabilities, converterClazz);
}
项目:menggeqa    文件:AppiumDriver.java   
public AppiumDriver(AppiumDriverLocalService service, HttpClient.Factory httpClientFactory,
    Capabilities desiredCapabilities,
                    Class<? extends JsonToWebElementConverter> converterClazz) {
    this(new AppiumCommandExecutor(MobileCommand.commandRepository, service, httpClientFactory),
        desiredCapabilities, converterClazz);
}
项目:menggeqa    文件:AppiumDriver.java   
public AppiumDriver(AppiumServiceBuilder builder, HttpClient.Factory httpClientFactory,
    Capabilities desiredCapabilities,
                    Class<? extends JsonToWebElementConverter> converterClazz) {
    this(builder.build(), httpClientFactory, desiredCapabilities, converterClazz);
}
项目:menggeqa    文件:AppiumDriver.java   
public AppiumDriver(HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities,
    Class<? extends JsonToWebElementConverter> converterClazz) {
    this(AppiumDriverLocalService.buildDefaultService(), httpClientFactory,
        desiredCapabilities, converterClazz);
}
项目:menggeqa    文件:AppiumCommandExecutor.java   
public AppiumCommandExecutor(Map<String, CommandInfo> additionalCommands,
    URL addressOfRemoteServer, HttpClient.Factory httpClientFactory) {
    super(additionalCommands, addressOfRemoteServer, httpClientFactory);
    service = null;
}
项目:menggeqa    文件:AppiumCommandExecutor.java   
public AppiumCommandExecutor(Map<String, CommandInfo> additionalCommands, DriverService service,
    HttpClient.Factory httpClientFactory) {
    super(additionalCommands, service.getUrl(), httpClientFactory);
    this.service = service;
}
项目:test-cloud-appium-java-extensions    文件:EnhancedAndroidDriver.java   
public EnhancedAndroidDriver(URL remoteAddress, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) {
    super(remoteAddress, httpClientFactory, desiredCapabilities);
    this.eventReporter = eventReporter;
}
项目:test-cloud-appium-java-extensions    文件:EnhancedAndroidDriver.java   
public EnhancedAndroidDriver(AppiumDriverLocalService service, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) {
    super(service, httpClientFactory, desiredCapabilities);
    this.eventReporter = eventReporter;
}
项目:test-cloud-appium-java-extensions    文件:EnhancedAndroidDriver.java   
public EnhancedAndroidDriver(AppiumServiceBuilder builder, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) {
    super(builder, httpClientFactory, desiredCapabilities);
    this.eventReporter = eventReporter;
}
项目:test-cloud-appium-java-extensions    文件:EnhancedAndroidDriver.java   
public EnhancedAndroidDriver(HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) {
    super(httpClientFactory, desiredCapabilities);
    this.eventReporter = eventReporter;
}
项目:test-cloud-appium-java-extensions    文件:EnhancedIOSDriver.java   
EnhancedIOSDriver(URL remoteAddress, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) {
    super(remoteAddress, httpClientFactory, desiredCapabilities);
    this.eventReporter = eventReporter;
}
项目:test-cloud-appium-java-extensions    文件:EnhancedIOSDriver.java   
EnhancedIOSDriver(AppiumDriverLocalService service, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) {
    super(service, httpClientFactory, desiredCapabilities);
    this.eventReporter = eventReporter;
}
项目:test-cloud-appium-java-extensions    文件:EnhancedIOSDriver.java   
EnhancedIOSDriver(AppiumServiceBuilder builder, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) {
    super(builder, httpClientFactory, desiredCapabilities);
    this.eventReporter = eventReporter;
}
项目:test-cloud-appium-java-extensions    文件:EnhancedIOSDriver.java   
EnhancedIOSDriver(HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities, EventReporter eventReporter) {
    super(httpClientFactory, desiredCapabilities);
    this.eventReporter = eventReporter;
}
项目:test-cloud-appium-java-extensions    文件:LocalProvider.java   
@Override
public EnhancedAndroidDriver createAndroidDriver(URL remoteAddress, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) {
    return new EnhancedAndroidDriver(remoteAddress, httpClientFactory, desiredCapabilities, eventReporter);
}
项目:test-cloud-appium-java-extensions    文件:LocalProvider.java   
@Override
public EnhancedAndroidDriver createAndroidDriver(AppiumDriverLocalService service, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) {
    return new EnhancedAndroidDriver(service, httpClientFactory, desiredCapabilities, eventReporter);
}
项目:test-cloud-appium-java-extensions    文件:LocalProvider.java   
@Override
public EnhancedAndroidDriver createAndroidDriver(AppiumServiceBuilder builder, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) {
    return new EnhancedAndroidDriver(builder, desiredCapabilities, eventReporter);
}
项目:test-cloud-appium-java-extensions    文件:LocalProvider.java   
@Override
public EnhancedAndroidDriver createAndroidDriver(HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) {
    return new EnhancedAndroidDriver(httpClientFactory, desiredCapabilities, eventReporter);
}
项目:test-cloud-appium-java-extensions    文件:LocalProvider.java   
@Override
public EnhancedIOSDriver createIOSDriver(HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) {
    return new EnhancedIOSDriver(httpClientFactory, desiredCapabilities, eventReporter);
}
项目:test-cloud-appium-java-extensions    文件:LocalProvider.java   
@Override
public EnhancedIOSDriver createIOSDriver(URL remoteAddress, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) {
    return new EnhancedIOSDriver(remoteAddress, httpClientFactory, desiredCapabilities, eventReporter);
}
项目:test-cloud-appium-java-extensions    文件:LocalProvider.java   
@Override
public EnhancedIOSDriver createIOSDriver(AppiumDriverLocalService service, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) {
    return new EnhancedIOSDriver(service, httpClientFactory, desiredCapabilities, eventReporter);
}
项目:test-cloud-appium-java-extensions    文件:LocalProvider.java   
@Override
public EnhancedIOSDriver createIOSDriver(AppiumServiceBuilder builder, HttpClient.Factory httpClientFactory, Capabilities desiredCapabilities) {
    return new EnhancedIOSDriver(builder, desiredCapabilities, eventReporter);
}