猿问

selenium+eclipse 为何运行时候会多打开一个空白界面


代码如下:

public static  void main(String[] args) throws InterruptedException, IOException {


// TODO 自动生成的方法存根

// 设置 chrome 的路径

System.setProperty("webdriver.chrome.driver","C:\\Program Files (x86)\\Google\\Chrome\\Application\\chromedriver.exe");

WebDriver driver = new ChromeDriver();

driver.get("https://www.imooc.com");}

每次运行都会先打开一个data;空白页面


慕侠1185987
浏览 1169回答 0
0回答
随时随地看视频慕课网APP
我要回答