Just need some help/guidance or instruction on how to use brave with selenium.
One of my issues is the fact that people online are saying install this driver (referring to the Chromedriver) well, if I do that on my machine, will it have adverse affects on my brave browsing experience? And would it even work with selenium&brave.
Please help. I am on Ubuntu 19.04, using Brave Version 0.66.99 Chromium: 75.0.3770.100 (Official Build) (64-bit)
I used Selenium with Chrome a while ago, but I don’t remember having to install anything. It was just a binary that I had to link to. (Looked like this in Python:
browser_driver = os.path.join(os.getcwd(), "chromedriver") ) I don’t know if anything changed since then.
I would just test if the driver works with Brave. Make sure to use version 75 (the same version as the Chromium version of your Brave installation).
Edit: I just found out you probably have to set the path to the Brave executable as well, since it would otherwise search for a Chrome installation.
Try this (Python):
options = ChromeOptions()
driver_path = os.path.join(os.getcwd(), "chromedriver")
driver = webdriver.Chrome(chrome_options=options, executable_path=driver_path)
Very fast reply, holy… Well thank you! I’ll definitely try it out once I am done with this other project I am working on.
Final question, As long as the version is 75(major version) it doesn’t matter correct? so minor versions and bug updates shouldn’t affect how it works… I am assuming it won’t affect anything.
There is a “guide” on how to select the right version here.
After skimming that page, I think there will be a new driver version matching any new Chromium versions first three “blocks”. So in your case, the driver will start with
75.0.3770.XXX. The last few numbers are fixes specifically for the driver. I don’t think the driver will break immediately with a newer version of Chromium though.
You deserve some bat… wish I could use this browser and send you some.
Thanks so much!
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.