【发布时间】:2020-09-14 09:47:15
【问题描述】:
from selenium import webdriver
driver=webdriver.firefox("D:\Pycharm_automation\geckodriver-v0.27.0-win64\geckodriver.exe")
driver.get("google.com")
- 在执行时,我遇到了类型错误。我无法打开 Firefox 和 chrome 驱动程序。
- 我已经安装了 chrome 和 gecko 驱动程序。
【问题讨论】:
-
尝试将路径中的
\替换为\\。
标签: python-3.x selenium-webdriver firefox webdriver geckodriver