Недавно я загрузил селен и попытался запустить этот скрипт:
from selenium import webdriver
driver = webdriver.Firefox()
но я получаю эту ошибку:
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
driver = webdriver.Firefox()
File "C:HeightsPortableAppsPortablePython2.7.6.1Applibsite-packagesselenium-3.0.1-py2.7.eggseleniumwebdriverfirefoxwebdriver.py", line 145, in __init__
keep_alive=True)
File "C:HeightsPortableAppsPortablePython2.7.6.1Applibsite-packagesselenium-3.0.1-py2.7.eggseleniumwebdriver
emotewebdriver.py", line 92, in __init__
self.start_session(desired_capabilities, browser_profile)
File "C:HeightsPortableAppsPortablePython2.7.6.1Applibsite-packagesselenium-3.0.1-py2.7.eggseleniumwebdriver
emotewebdriver.py", line 179, in start_session
response = self.execute(Command.NEW_SESSION, capabilities)
File "C:HeightsPortableAppsPortablePython2.7.6.1Applibsite-packagesselenium-3.0.1-py2.7.eggseleniumwebdriver
emotewebdriver.py", line 236, in execute
self.error_handler.check_response(response)
File "C:HeightsPortableAppsPortablePython2.7.6.1Applibsite-packagesselenium-3.0.1-py2.7.eggseleniumwebdriver
emoteerrorhandler.py", line 192, in check_response
raise exception_class(message, screen, stacktrace)
WebDriverException: Message: Expected browser binary location, but unable to find binary in default location, no 'firefox_binary' capability provided, and no binary flag set on the command line
О, кстати, это откройте мне geckodriver.exe перед тем, как написать eror
python,selenium,path,webdriver,