Get Selenium to work with Brave browser on Linux

0 votes

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?

Apr 14, 2022 in Linux Administration by Soham
• 9,730 points
1,979 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Linux Administration

0 votes
0 answers
0 votes
0 answers

How to compile for Windows on Linux with gcc/g++?

I have written some effects in C++ ...READ MORE

Apr 13, 2022 in Linux Administration by Rahul
• 9,690 points
1,077 views