1from selenium import webdriver
2
3driver_path = "C:/Users/username/PycharmProjects/chromedriver.exe"
4brave_path = "C:/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe"
5
6option = webdriver.ChromeOptions()
7option.binary_location = brave_path
8# option.add_argument("--incognito") OPTIONAL
9# option.add_argument("--headless") OPTIONAL
10
11# Create new Instance of Chrome
12browser = webdriver.Chrome(executable_path=driver_path, chrome_options=option)
13
14browser.get("https://www.google.es")