I am trying to get Selenium to work with Brave.
from selenium import webdriver from selenium.webdriver.chrome.options import Options options = Options() options.binary_location = '/snap/bin/brave' driver_path = '/usr/local/bin/chromedriver' drvr = webdriver.Chrome(options=options, executable_path=driver_path) drvr.get('https://edureka.co')
I keep getting this error
selenium.common.exceptions.WebDriverException: Message: unknown error: DevToolsActivePort file doesn't exist
options.add_argument("start-maximized")
options.add_argument("disable-infobars")
options.add_argument("--disable-extensions")
options.add_argument("--disable-gpu")
options.add_argument("--disable-dev-shm-usage")
options.add_argument("--no-sandbox") options.add_argument('--remote-debugging-port=9222')
options.add_argument('--headless')
Can anyone help me out?