Use Selenium with Brave Browser pass service object written in python
To initiate a brave browsing context you need to: Use the binary_location attribute to point to the brave binary location. Use the chromedriver executable to initiate the brave browser. Code block: from selenium import webdriver from selenium.webdriver.chrome.service import Service option = webdriver.ChromeOptions() option.binary_location = r’C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe’ driverService = Service(‘C:/Users/…/chromedriver.exe’) driver = webdriver.Chrome(service=driverService, options=option) driver.get(“https://www.google.com”) … Read more