![]() Installing Brave browser on Ubuntu and Debian based distributions For Ubuntu and Debian based distributions, here’s what you need to do. You’ll have to install it through the package manager of your distribution. So the effective code block will be: from selenium import webdriverĬhromedriver_path = '/usr/bin/chromedriver'īrowser = webdriver. Get Brave Browser Install Brave browser on Linux Brave used to provide a snap package but it has been discontinued. 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. Installing Brave on Ubuntu 22.04 Method 1 Using GUI to install Brave Browser on Ubuntu 22.04 Method 2- Using Snap pack in Terminal to install Brave on Ubuntu 22. 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.
0 Comments
Leave a Reply. |