Get Selenium to work with Brave browser on Linux

0 votes

I am trying to get Selenium to work with Brave. I am using the script from here.

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://stackoverflow.com')


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,700 points
1,374 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,670 points
499 views
0 votes
0 answers

failure to compile imgui, glfw, opengl on linux with gcc 11.2

I've recently started coding with c++ and ...READ MORE

Apr 14, 2022 in Linux Administration by Aditya
• 7,680 points
660 views
0 votes
0 answers

How to get overall CPU usage (e.g. 57%) on Linux

I am wondering how you can get ...READ MORE

Apr 25, 2022 in Linux Administration by Edureka
• 13,670 points
230 views
–1 vote
1 answer

How to get octal file permission in linux?

You can use this: stat -c "%a %n" ...READ MORE

answered Jan 3, 2019 in Linux Administration by Omkar
• 69,210 points
2,096 views
0 votes
1 answer

How to find the group associated with a user in linux?

To list all the groups groups or to list ...READ MORE

answered Jun 21, 2019 in Linux Administration by DareDev
• 6,890 points
764 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
12,737 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
8,618 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
6,694 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,555 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP