Google+

Executing Selenium Automation Scripts on different browser

Selenium provides support for executing the Automation Scripts on different browsers. The below are the different browsers supported by Selenium:
  • Firefox Browser
  • Chrome Browser
  • Internet Explorer Browser
  • Safari Browser
  • Opera Browser
The below diagram depicts the different browsers supported by Selenium for executing the automation scripts:



Executing Selenium Automation Scripts on different browser:

I will now explain how to execute our automation scripts on different browser one after the another:

Firefox Browser:

In Selenium 2 version, we need to use FirefoxDriver for executing the automation scripts on Firefox Browser. Read detailed and practical way to execute Selenium 2 Automation Scripts on Firefox browser using FirefoxDriver here

In Selenium 3 version, we need to use GeckoDriver for executing the automation scripts on Firefox Browser. Read detailed and practical way to execute Selenium 3 Automation Scripts on Firefox browser using GeckoDriver here

Chrome Browser:


Internet Explorer Browser:


Safari Browser:


Opera Browser:



Conclusion:

Hence we can execute Selenium Automation scripts on 5 different types of browsers i.e. Firefox, Chrome, Internet Explorer, Safari and Opera browsers.Respective drivers are required for executing the automation scripts on different browsers. For example, FirefoxDriver is required for executing the scripts on Firefox Browser and ChromeDriver is required for executing the scripts on Chrome Browser.

No comments:

Blog Index