Home > Selenium > Parallel execution of script in multiple browsers using selenium

Parallel execution of script in multiple browsers using selenium

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

Single script can be ran in multiple browsers. To perform that we need to define browser configurations in testng.xml file.

In class name we can mention script name. We can mention same script name or multiple script names. If you want to run in 3 different browsers then just copy test block and paste inside suite. And mention browser value.

And in create class demoBrowser and paste below code. Pass browser parameter using testng annotations and we have used @BeforeSuite annotation which will run at the starting of every execution.

This Article is TAGGED in , . BOOKMARK THE permalink.

Avatar photo
Amit Bharamasali
Automation Software Test Engineer. Skills: Manual Testing, Selenium, Java, Protractor, JavaScript, Katalon Studio, Groovy, Appium, Sahi, Sahi Script and 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="">