📜  制作 selenium 无头 python 代码示例

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

代码示例2
from selenium import webdriver
from selenium.webdriver.chrome.options import Options

options = Options()
options.headless = True
driver = webdriver.Chrome(CHROMEDRIVER_PATH, options=options)