selenium-设置chrome浏览器无界面模式

# 导入包 from selenium.webdriver.chrome.options import Options # 设置chrome浏览器无界面模式 chrome_options.add_argument('--headless') browser = webdriver.Chrome(chrome_options=self.chrome_options) # 无界面模式下默认不是全屏
相关文章
相关标签/搜索