com.fastchar.selenium.FastSeleniumConfig Maven / Gradle / Ivy
package com.fastchar.selenium;
import com.fastchar.interfaces.IFastConfig;
/**
* @author 沈建(Janesen)
* @date 2021/10/12 10:36
*/
public class FastSeleniumConfig implements IFastConfig {
private String chromeDriverPath;//谷歌浏览器驱动的地址
public String getChromeDriverPath() {
return chromeDriverPath;
}
public FastSeleniumConfig setChromeDriverPath(String chromeDriverPath) {
this.chromeDriverPath = chromeDriverPath;
System.setProperty("webdriver.chrome.driver", chromeDriverPath);
return this;
}
}