📌  相关文章
📜  如何在 selenium webdriver 中打开 chrome 控制台 - Python 代码示例

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

代码示例1
import time
from selenium import webdriver

chrome_options = webdriver.ChromeOptions()
chrome_options.addArguments("--auto-open-devtools-for-tabs");

driver = webdriver.Chrome(chrome_options=chrome_options)
driver.maximize_window()
driver.get('https://google.com')
time.sleep(3)
driver.close()