📌  相关文章
📜  selenium 关闭浏览器 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:08.640000             🧑  作者: Mango

代码示例1
driver.close() #It closes the browser window on which the focus is set.

driver.quit() #It basically calls the driver.dispose method which in turn closes all the browser windows and ends the WebDriver session gracefully.