title: Problem with set up selenium in freebsd using geckodriver.exe
body: <p>I have problem with set up my program in freebsd. I try use geckodriver.  I try 32 bit and 64 bit, download link is here <a href="https://github.com/mozilla/geckodriver/releases" rel="nofollow noreferrer">https://github.com/mozilla/geckodriver/releases</a></p>
  <p>Documentation link</p>
  <p><a href="https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Headless_mode" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Headless_mode</a></p>
  <p>My code</p>
  <pre><code>from selenium.webdriver import Firefox
  from selenium.webdriver.common.by import By
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.firefox.options import Options
  from selenium.webdriver.support import expected_conditions as expected
  from selenium.webdriver.support.wait import WebDriverWait
  
  options = Options()
  options.add_argument('-headless')
  driver = Firefox(executable_path=r&quot;usr\home\myuserName\geckodriver.exe&quot;, options=options)
  driver.get(&quot;https://www.verivox.de/stromvergleich/vergleich/#/?plz=10555&amp;persons=on&amp;usage=3500&amp;bonus=OnlyCompliant&amp;profile=H0&amp;product=electricity&amp;source=1&amp;q=WzYsMCwxLDEsMSwxLDEsMiwyMCwwLDEsNzQxMTIyLCI3MTA4NSIs&gt;
  allheader=WebDriverWait(driver,20).until(expected.visibility_of_all_elements_located((By.CSS_SELECTOR,&quot;li[class='result-item'] .result-name-area&gt;.result-name&quot;)))
  for header in allheader:
       print(&quot;Header: &quot; + header.text)
  </code></pre>
  <p>I get error</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/home/myuserName/.local/lib/python3.7/site-packages/selenium/webdriver/common/service.py&quot;, line 76, in start
      stdin=PIPE)
    File &quot;/usr/local/lib/python3.7/subprocess.py&quot;, line 800, in __init__
      restore_signals, start_new_session)
    File &quot;/usr/local/lib/python3.7/subprocess.py&quot;, line 1551, in _execute_child
      raise child_exception_type(errno_num, err_msg, err_filename)
  FileNotFoundError: [Errno 2] No such file or directory: 'usr\\home\\myuserName\\geckodriver.exe': 'usr\\home\\myuserName\\geckodriver.exe'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;skriptas.py&quot;, line 10, in &lt;module&gt;
      driver = Firefox(executable_path=r&quot;usr\home\myuserName\geckodriver.exe&quot;, options=options)
    File &quot;/home/myuserName/.local/lib/python3.7/site-packages/selenium/webdriver/firefox/webdriver.py&quot;, line 164, in __init__
      self.service.start()
    File &quot;/home/myuserName/.local/lib/python3.7/site-packages/selenium/webdriver/common/service.py&quot;, line 83, in start
      os.path.basename(self.path), self.start_error_message)
  selenium.common.exceptions.WebDriverException: Message: 'usr\home\myuserName\geckodriver.exe' executable needs to be in PATH.
  </code></pre>
  <p>I try change link like this</p>
  <pre><code>driver = Firefox(executable_path=&quot;usr\home\myuserName\geckodriver.exe&quot;, options=options)
  </code></pre>
  <p>or like this</p>
  <pre><code>driver = Firefox(executable_path='usr\home\myuserName\geckodriver.exe', options=options)
  </code></pre>
  <p>or like this</p>
  <pre><code>driver = Firefox(executable_path=r'usr/home/myuserName/geckodriver.exe', options=options)
  </code></pre>
  <p>but still same error. Please help me, all help will be appreciated</p>