title: How to use Brave web browser with python, selenium and chromedriver?
body: <p>I switched from Google's Chrome to <a href="https://brave.com/" rel="noreferrer">Brave web browser</a> and am having a hard time getting it to work with Brave like it did with Chrome. Brave is based on chromium so I guessed it should not be that hard. I made sure that my Brave and Chromedriver are on the same version like this,</p>
  
  <pre class="lang-sh prettyprint-override"><code>~/some/path $ chromedriver --version
  ChromeDriver 76.0.3809.126 (d80a294506b4c9d18015e755cee48f953ddc3f2f-refs/branch-heads/3809@{#1024})
  </code></pre>
  
  <p>My chromedriver is also in <code>/user/bin</code>,</p>
  
  <pre class="lang-sh prettyprint-override"><code>~/path $ cd /usr/bin/
  /usr/bin $ ls | grep chromedriver
  chromedriver 
  </code></pre>
  
  <p>And to check the Brave version, I get: <code>Version 0.68.132 Chromium: 76.0.3809.132 (Official Build) (64-bit)</code></p>
  
  <p>Then I run this code,</p>
  
  <pre class="lang-py prettyprint-override"><code>from selenium import webdriver
  
  driver = webdriver.Chrome(executable_path='/usr/bin/brave-browser')
  driver.get("http://www.python.org")
  driver.close()
  </code></pre>
  
  <p>This opens a Brave window but then instead of getting the page the driver is pointed to, an exception is thrown,</p>
  
  <pre class="lang-sh prettyprint-override"><code>Traceback (most recent call last):
    File "webscrap.py", line 3, in &lt;module&gt;
      driver = webdriver.Chrome(executable_path='/usr/bin/brave-browser')
    File "/home/username/.local/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
      self.service.start()
    File "/home/username/.local/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 98, in start
      self.assert_process_still_running()
    File "/home/username/.local/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 111, in assert_process_still_running
      % (self.path, return_code)
  selenium.common.exceptions.WebDriverException: Message: Service /usr/bin/brave-browser unexpectedly exited. Status code was: -11
  </code></pre>