org.openqa.selenium.remote.http.HttpClient.Factory源码实例Demo

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

下面列出了org.openqa.selenium.remote.http.HttpClient.Factory 类实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: Quantum   文件: UiDriverFactory.java
private static WebDriver getDriverProxyObj(Class<? extends WebDriver> of, Capabilities capabilities, URL url,
		Factory factory) {
	try {
		// give it first try
		// Constructor<? extends WebDriver> constructor =
		// of.getConstructor(HttpCommandExecutor.class,
		// Capabilities.class);
		Constructor<? extends WebDriver> constructor = of.getConstructor(URL.class, Factory.class,
				Capabilities.class);
		return constructor.newInstance(url, factory, capabilities);
	} catch (Exception ex) {
		return null;
	}
}
 
源代码评论
动弹
沙发等你来抢
 类所在包
 类方法
 同包方法