2

Rencently I changed my web-browser to Brave, but I was working with chromedriver to automating some tasks

I've read some and I found this post says that the version of ChromeDriver and Brave have to match, but I don't find driver to my current version only for ChromeDriver 80.0.3987.106.

This is my Brave info: Versión 1.4.96 Chromium: 80.0.3987.132 (Official Build) (64-bits).

from selenium import webdriver
from selenium.webdriver.chrome.options import Options

option = Options()
option.binary_location = '/usr/bin/brave-browser '
driver_path = '/home/usr_1/Downloads/ML/chromedriver'
driver = webdriver.Chrome(options = option, executable_path = driver_path)
driver.get('https://pypi.org/')
Chacho Fuva
  • 353
  • 1
  • 4
  • 17

1 Answers1

1

To open a Browsing Context using Selenium driven ChromeDriver you can use the following solution:

  • Code Block:

    from selenium import webdriver
    
    option = webdriver.ChromeOptions()
    option.binary_location = r'C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe'
    driver = webdriver.Chrome(executable_path=r'C:\WebDrivers\chromedriver.exe', options=option)
    driver.get("https://www.google.com")
    
undetected Selenium
  • 183,867
  • 41
  • 278
  • 352