How to add firefox to system PATH on Linux instance at Amazon Web Service?
<p>This is naive question but how does one add firefox to the system PATH on a Amazon Web Service Linux instance? I should clarify that I installed firefox to <code>/home/firefox</code> instead of <code>/usr/bin</code>. Thanks! I am currently getting the following error when I try to load the firefox webdriver (after importing <code>selenium</code>):</p>

<pre><code>&gt;&gt;&gt; driver = webdriver.Firefox()
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 64, in __init__
    self.binary = capabilities.get("binary") or FirefoxBinary()
  File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 47, in __init__
    self._start_cmd = self._get_firefox_start_cmd()
  File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 163, in _get_firefox_start_cmd
    " Please specify the firefox binary location or install firefox")
RuntimeError: Could not find firefox in your system PATH. Please specify the firefox binary location or install firefox
</code></pre>