代碼如下:public static? void main(String[] args) throws InterruptedException, IOException { // TODO 自動(dòng)生成的方法存根 // 設(shè)置 chrome 的路徑 System.setProperty("webdriver.chrome.driver","C:\\Program Files (x86)\\Google\\Chrome\\Application\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.get("http://idcbgp.cn");}每次運(yùn)行都會(huì)先打開(kāi)一個(gè)data;空白頁(yè)面
selenium+eclipse 為何運(yùn)行時(shí)候會(huì)多打開(kāi)一個(gè)空白界面
慕俠1185987
2019-10-04 12:27:35