Home > Automation Testing > Advance Selenium > How to execute selenium script in Brave browser

How to execute selenium script in Brave browser

This post was most recently updated on July 31st, 2024

 Execute selenium script in Brave browser

To download and install selenium configuration please refer link:

1.Download and install brave browser in system:
->Go to Brave browser site.
->Download Brave Browser according to your system configuration.
As I have 64 bit window machine ,I will download brave browser for 64 bit.
->Install the brave browser in the system

Search for brave browser in google or download it from here

brave browser search

Click on Download button

brave browser

Select link based on your system configuration

brave browser download

Install the brave browser in the machine.

2.Check that your chrome driver version is compatible with your brave browser version.

Check chrome driver version
-Click on chrome driver application file
-Check the chrome driver version.

chrome driver
Chrome version

Check brave browser version
-Go to settings of your brave browser.
-Click on “About brave”
-Check the chromium version of brave browser

brave browser
brave browser version

If chrome driver version is not compatible with your brave browser version then update the chrome driver version.

Selenium code to open brave browser using selenium

System.setProperty(“webdriver.chrome.driver”,”path of chrome driver”);
ChromeOptions options=new ChromeOptions();

//Set the path of brave browser
options.setBinary(“C:\\Program Files (x86)\\BraveSoftware\\Brave-Browser\\Application\\brave.exe”);
WebDriver driver=new ChromeDriver(options);

path of brave browser

Code

This Article is TAGGED in , . BOOKMARK THE permalink.

Babita Sahu
Automation Software Test Engineer. Skills : Selenium , STLC , Java, Manual Testing , UI / UX Testing

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">