我不断收到错误消息以及其他在硒的Python,当我使用我不能没有指定路径
driver = webdriver.Firefox()
driver.get('http://stackoverflow.com')
错误消息启动Chrome驱动程序消息以及Selenium Python中的其他消息。我可以解决这个问题有:
driver = webdriver.Firefox(executable_path=r'C:\Users\Bain3\Music\geckodriver.exe')
driver.get(' http://stackoverflow.com')
我曾尝试以下补救与Chrome和Firefox这个问题: 重新安装Chrome浏览器,火狐,Pycharm,蟒蛇,硒(PIP安装硒)
更改目录的文件:https://ibb.co/huDuWk
重新安装Chrome和Firefox后发生此问题。
目录是:
C:\Users\Bain3\Anaconda3
C:\Brother\geckodriver.exe
C:\Program Files\Mozilla Firefox\firefox.exe
我使用Windows 10 感谢
什么是你使用的操作系统? –
你有没有尝试把你的路径中有chromedriver的文件夹? –
@santhoshkumar我正在使用windows – Tetora