org.openqa.selenium.remote.internal.HttpClientFactory Java Examples
The following examples show how to use
org.openqa.selenium.remote.internal.HttpClientFactory.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OverrideHTTPTimeoutForAppiumClient.java From samples with MIT License | 6 votes |
@BeforeTest @Override public void Setup() throws Exception { super.Setup(); DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability("sessionName", "Android App Test - Override HTTP timeout for Appium client"); capabilities.setCapability("sessionDescription", "Kobiton sample session"); capabilities.setCapability("deviceOrientation", "portrait"); capabilities.setCapability("captureScreenshots", true); capabilities.setCapability("app", "https://s3-ap-southeast-1.amazonaws.com/kobiton-devvn/apps-test/demo/com.dozuki.ifixit.apk"); capabilities.setCapability("deviceName", "Galaxy J7"); capabilities.setCapability("platformName", "Android"); int connectionTimeout = 20 * 60 * 1000; int socketTimeout = 90 * 1000; ApacheHttpClient.Factory clientFactory = new ApacheHttpClient.Factory(new HttpClientFactory(connectionTimeout, socketTimeout)); AppiumCommandExecutor executor = new AppiumCommandExecutor(new HashMap<>(), getAutomationUrl(), clientFactory); driver = new AndroidDriver<>(executor, capabilities); }
Example #2
Source File: MockRemoteProxy.java From SeleniumGridScaler with GNU General Public License v2.0 | 4 votes |
@Override public HttpClientFactory getHttpClientFactory() { return null; }