There is:
Firefox == 58.0.2 selenium == 3.9.0 geckodriver == 0.19.1 Python == 3.6.4 Debian based Linux (64bit) chmod +x -knite geckodriver in usr/local/bin .
Running geckodriver --version in the terminal geckodriver --version :
geckodriver 0.19.1
Testing / geckodriver in https://hg.mozilla.org/mozilla-central .
This program is subject to the Mozilla Public License 2.0. You can obtain a copy of the license at https://mozilla.org/MPL/2.0/ .
Firefox installed not via apt-get, but unzipped to /usr/bin/firefox
In .bashrc file added line:
export PATH=$PATH:/usr/bin/firefox When I run the bottom:
from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities cap = DesiredCapabilities().FIREFOX cap["marionette"] = False browser = webdriver.Firefox(capabilities=cap, executable_path="/usr/local/bin") link = browser.get('https://duckduckgo.com') web2 = link.find_element_by_class_name('logo_homepage__tt').text print(web2) I get the error:
RuntimeError: Could not find firefox in your system PATH. Please specify the firefox binary location or install firefox
echo $SHELLgives/bin/bash- Tanya