title: webDriverException "selenium.common.exceptions.WebDriverException: Message: Service ./webdrivers/geckodriver unexpectedly exited. Status code was: 1"
body: <p>I am running a simple python based selenium webdriver script for geckodriver</p>
  <pre><code>from selenium import webdriver
  geckodriver_path = &quot;./webdrivers/geckodriver&quot;
  driver = webdriver.Firefox(executable_path=geckodriver_path)
  driver.get(&quot;https://dev.to&quot;)
  driver.find_element_by_id(&quot;nav-search&quot;).send_keys(&quot;Selenium&quot;)
  </code></pre>
  <p>after execution showing Warning message along with Exception</p>
  <pre><code>/&lt;path&gt;/demo.py:3: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
    driver = webdriver.Firefox(executable_path=geckodriver_path)
  </code></pre>
  <p>And the exception is</p>
  <pre><code>selenium.common.exceptions.WebDriverException: Message: Service ./webdrivers/geckodriver unexpectedly exited. Status code was: 1
  </code></pre>
  <p>The environment which is being used<br/>
  python(3.9.2)<br/>
  selenium(4.1.0)<br/>
  geckodriver(0.24.0)<br/>
  firefox(87.0 64-bit)<br/></p>
  <p>Output of geckodriver.log<br/></p>
  <pre><code>error: Found argument '--websocket-port' which wasn't expected, or isn't valid in this context
  
  USAGE:
      geckodriver [FLAGS] [OPTIONS]
  
  For more information try --help
  </code></pre>