//获取 cookie Set<Cookie> cookie = driver.manage().getCookies(); //删除所有 cookie driver.manage().deleteAllCookies(); 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 13.调用JavaScript WebDriver提供了executeScript()方法来执行JavaScript代码 //eg: //实例化JavascriptExecutor JavascriptExecutor dri...