Multi Browser or Cross Browser Testing in Selenium WebDriver | Selenium Tutorial

In today’s article we are going to discuss about how to run scripts on multiple browsers? Mostly we used cross browser or multiple browser for compatibility testing. Currently Google Chrome, Firefox, Internet Explorer, Safari etc are the most useful browsers at market.

Why Multi Browser or Cross Browser testing required?

  1. Font size could be varied
  2. JavaScript will not worked for some browsers
  3. User Interface could be different
  4. New technology like HTML5 supporting or not

We will write a code for Multi Browser or Cross Browser Testing.  It will be small and easy code which will help for beginners to understand the basic concept.

Multi Browser Testing

Download following Drivers
  1. Chrome Driver
  2. Internet Explorer
  3. Firefox Driver

Output:

Code Run in Chrome Browser

Cross Browser Testing

 

So, using above sample of code you can create script for Multi Browser or Cross Browser Testing. I hope you liked above article if yes then please comment below and share with your friends.


Check More Articles:

Basic Login Script using Selenium Webdriver
Basic Selenium WebDriver Script in NetBeans using Chrome Browser
Basic Selenium WebDriver Script in NetBeans using Firefox Browser

Leave a Reply

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