小编Ali*_*Ali的帖子

弃用警告:在 Windows 10 系统上通过 Selenium 使用 ChromeDriver 和 Chrome 使用选项而不是 chrome_options 错误

尝试在我的 Windows 10 机器上运行此代码https://github.com/KalleHallden/reddit_automations/blame/master/movie-tickets.py

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from decouple import config
import time

# the way to locate the button or thing you want on a website in chrome is
# by pressing cmd + shift + c and then you can use your mouse to find the 
# info on the element that you want and you can copy the full xpath.

options = webdriver.ChromeOptions()
# options.add_argument('--ignore-certificate-errors')
# options.add_argument('--incognito')
# options.add_argument('--headless')
driver = …
Run Code Online (Sandbox Code Playgroud)

python selenium google-chrome selenium-chromedriver windows-10

6
推荐指数
2
解决办法
2万
查看次数