title: How to use Brave web browser with Selenium on Catalina?
body: <p><a href="https://www.codegrepper.com/code-examples/python/python+selenium+brave+browser" rel="nofollow noreferrer">https://www.codegrepper.com/code-examples/python/python+selenium+brave+browser</a></p>
  <p>I see this example to use brave browser on windows. Is it supposed to work on Catalina as well by just replacing driver_path and brave_path?</p>
  <p>Also, Chromedriver is only for Chrome. How to determine which version of chromedriver should be used for brave browser?</p>
  <p><a href="https://chromedriver.chromium.org" rel="nofollow noreferrer">https://chromedriver.chromium.org</a></p>
  <pre><code>from selenium import webdriver
  
  driver_path = &quot;C:/Users/username/PycharmProjects/chromedriver.exe&quot;
  brave_path = &quot;C:/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe&quot;
  
  option = webdriver.ChromeOptions()
  option.binary_location = brave_path
  # option.add_argument(&quot;--incognito&quot;) OPTIONAL
  # option.add_argument(&quot;--headless&quot;) OPTIONAL
  
  # Create new Instance of Chrome
  browser = webdriver.Chrome(executable_path=driver_path, chrome_options=option)
  
  browser.get(&quot;https://www.google.es&quot;)
  </code></pre>