我已经使用 pip 通过 python 安装了 selenium(我跑了):
pip install selenium
我正在使用 Python 3.9.0,并且无法识别驱动程序参数。
我当前的代码。
import selenium
from selenium import webdriver
filepath = r"D:\msedgedriver.exe"
webdriver.Edge(filepath)
options=driver.EdgeOptions()
在这段代码中。导入命令没有问题,但driver
未被识别为有效语法。
有什么帮助吗?