使用Selenium和Webdriver启动Firefox浏览器时遇到错误

时间:2019-12-07 20:26:44

标签: python-3.x selenium selenium-webdriver

我刚开始玩python,遵循selenium教程开始出现错误。我点安装硒和从硒进口的WebDriver;但是,当我使用command browser = webdriver.Firefox()时,会出现所有这些错误。我确实安装了Firefox。任何帮助表示赞赏。这是在Windows 10中使用python3

Traceback (most recent call last):
  File "C:\Users\George\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start
    self.process = subprocess.Popen(cmd, env=self.env,
  File "C:\Users\George\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\George\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 1307, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

0 个答案:

没有答案