Run Tests on Specific Firefox Version Using Selenium Webdriver


If there’s a need to test our application in specified firefox version the we can use this code.
Note : Here I am using Firefox26 version.You have to install Firefox26 in your box to run this.

FirefoxBinary binary = new FirefoxBinary(new File(“C://Program Files//Mozilla Firefox26//firefox.exe”));
FirefoxProfile profile = new FirefoxProfile();
driver = new FirefoxDriver(binary, profile);

Advertisements

4 thoughts on “Run Tests on Specific Firefox Version Using Selenium Webdriver

  1. Anonymous July 22, 2015 / 10:15 pm

    by saying install firefox xx in your box to run this, do you mean installing ff xx on system?

    Like

    • charan163 July 22, 2015 / 10:21 pm

      Exactly..!

      Like

  2. anjalivaswani September 23, 2015 / 6:46 pm

    Charan, little correction , you dont need to install firefox 26 on your machine to execute this. You can execute this script by keeping Mozilla 26 exe in a folder and can access this. We can do this for many versions of FF. I have only one version of FF installed on my machine and I execute scripts on different versions of FF using this. By the way your posts are quite awesome,.. Congrats and Good luck!!

    Like

    • charan163 September 23, 2015 / 7:29 pm

      Exactly..! That’s right.We can run any version without installing it.Maybe i’ve to correct the article.Anyway Thanks..!

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s