

Like other browsers, it is free to download and use, remembers site authentication information, and can block online ads from appearing on sites. What is the Brave browser?īrave is a more-or-less standard browser that lets users navigate to websites, run web apps, and display online content.

The Brave browser can show users how many ad trackers (and ads) have been blocked. (If you do decide to try it out, download information is detailed below.) Brave Here's what you need to know to decide whether Brave's for you. So the effective code block will be: from selenium import webdriverĬhromedriver_path = '/usr/bin/chromedriver'īrowser = webdriver.Computerworld took a deep dive into Brave to figure out what it is, what it does and how it does it. To initiate a Brave browser session additionally you have to pass the absolute location of the brave-browser binary through the binary_location argument of an instance of ChromeOptions. The executable_path key is used to pass the absolute path of the WebDriver binary i.e.

: Message: Service /usr/bin/brave-browser unexpectedly exited. This opens a Brave window but then instead of getting the page the driver is pointed to, an exception is thrown, Traceback (most recent call last):įile "/home/username/.local/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in _init_įile "/home/username/.local/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 98, in startįile "/home/username/.local/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 111, in assert_process_still_running Then I run this code, from selenium import webdriverĭriver = webdriver.Chrome(executable_path='/usr/bin/brave-browser') 126 chromedriver is also in /user/bin, ~/path $ cd /usr/bin/Īnd to check the Brave version, I get: Version 0.68.132 Chromium. I made sure that my Brave and Chromedriver are on the same version like this, ~/some/path $ chromedriver -versionĬhromeDriver.

Brave is based on chromium so I guessed it should not be that hard. I switched from Google's Chrome to Brave web browser and am having a hard time getting it to work with Brave like it did with Chrome.
