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,710 points
1,556 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,680 points
766 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
893 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,690 points
429 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,220 points
2,567 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
939 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
13,673 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
9,142 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
7,221 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,874 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