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);
by saying install firefox xx in your box to run this, do you mean installing ff xx on system?
LikeLike
Exactly..!
LikeLike
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!!
LikeLike
Exactly..! That’s right.We can run any version without installing it.Maybe i’ve to correct the article.Anyway Thanks..!
LikeLike