代码:
public static void main(String[] args) {
// objects and variables instantiation
System.setProperty("webdriver.gecko.driver", "C:\\selenium-java-3.4.0\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();
}
控制台:1502197016829 geckodriver INFO geckodriver 0.18.0 1502197016843 geckodriver INFO 正在侦听 127.0.0.1:31751 1502197017814 geckodriver::marionette INFO 启动浏览器 C:\Program Files (x86)\Mozilla Firefox\firefox.exe with args ["]-marion 1502197021151 木偶信息通过--marionette启用