萧萧雨潇潇

关注

DeprecationWarning: use options instead of chrome_options

萧萧雨潇潇

关注

阅读 75

2022-04-05

  解决办法:

#!/usr/bin/python
# -*- coding: UTF-8 -*-
"""
@author: Roc-xb
"""
from selenium import webdriver
from selenium.webdriver.chrome.options import Options

if __name__ == '__main__':
    chrome_options = Options()
    chrome_options.add_argument('--headless')
    driver = webdriver.Chrome(options=chrome_options)

相关推荐

祈澈菇凉

selenium 选项 chrome_options

祈澈菇凉 68 0 0

菜菜捞捞

selenium基础使用-2之chrome_options

菜菜捞捞 217 0 0

夕颜合欢落

chrome 的 options 参数

夕颜合欢落 95 0 0

静守幸福

chrome浏览器的options参数

静守幸福 97 0 0

gy2006_sw

Chrome浏览器的options参数

gy2006_sw 183 0 0

沐之轻语

(node:2612) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.

沐之轻语 68 0 0

黄昏孤酒

options请求

黄昏孤酒 100 0 0

乌龙茶3297

VM options

乌龙茶3297 63 0 0

booksmg2014

Python chrome_options=option设置用户自己的数据目录时,driver.get()失效原因之一

booksmg2014 96 0 0

夕颜合欢落

DeprecationWarning: find_element_by_* commands are deprecated. Please use find_element() instead

夕颜合欢落 87 0 0

精彩评论(0)

0 0 举报