How to fix gecko driver needs to be in path[Selenium,Python and Marionette driver installation]

Subscribers:
1,760
Published on ● Video Link: https://www.youtube.com/watch?v=ePldDGmTU78



Duration: 2:06
14,781 views
41


This video is probably outdated but still might help someone.

## copy and paste everything here below,line by line,these are lines for installing selenium,python and setting up the marionette driver.This will not work if you have selenium already installed.
you may try it but it didnt work for me more than once :D
=======================================================


apt-get install ipython
apt-get install python-pip
pip install selenium
mkdir /root/bin
cd /root/bin
wget https://github.com/mozilla/geckodriver/releases/download/v0.9.0/geckodriver-v0.9.0-linux64.tar.gz
tar -xvzf geckodriver-v0.9.0-linux64.tar.gz
rm geckodriver-v0.9.0-linux64.tar.gz
chmod +x geckodriver
cp geckodriver wires
export PATH=$PATH:/root/bin/wires
export PATH=$PATH:/root/bin/geckodriver

ipython
%cpaste


browser = None
def StartSelenium():
import selenium
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
import binascii
import hashlib
firefox_capabilities = DesiredCapabilities.FIREFOX
firefox_capabilities['marionette'] = True
firefox_capabilities['binary'] = '/usr/bin/firefox'
global browser
browser = webdriver.Firefox(capabilities=firefox_capabilities)
browser.get('https://www.google.com')
--
=======================================================
## IF THIS STILL DOES NOT WORK,JUST DOWNGRADE YOUR SELENIUM WITH THIS COMMAND.JUST PASTE IT IN THE TERMINAL
=======================================================
pip install selenium==2.53.6







Tags:
How
to
fix
gecko
driver
needs
be
in
path
selenium
python
marionette
firefox