定义浏览器驱动实例的接口:
package ec.qa.autotest.ui.utility.base;
/**
* 实例化目标浏览器接口
* @author xin.wang
*
*/
public interface IBrowserDriverBase {
public void configBrowser() throws Exception;
public <T> T getWebDriver()throws Exception;
}
实现以上接口的子类
ChromeDriver:
package ec.qa.autotest.ui.testbase;
import java.io.File;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeDriverService;
import ec.qa.autotest.ui.constants.