Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I have installed firefox 14 and has firefox portable version 25.0.1 on the machine, where I run tests for a web site.

Due to a limitation in the site I'm testing, I cannot run my tests on firefox 14 installation. Also I cannot upgrade the firefox 14 installation.

So I'm looking into a solution where I can use this portable firefox version instead of the installed firefox 14 version.

How should I force selenium to use this portable version and not the installed version?If someone could direct me to some descriptive article/blog that would be great.

PS: python is the used language

share|improve this question
    
This question is so old that it is no longer relevant. Since Firefox implemented auto-upgrading, everyone is generally on the latest version. I would argue that older versions of Firefox should not be suppported. –  djangofan Mar 16 at 16:36
add comment

2 Answers 2

When you instantiate Selenium set the full path to the Firefox install you want to use instead of just using "firefox" which will use the defaul path.

  def setUp(self):
       self.selenium = selenium("localhost", 4444, "*firefox C:\\Program Files\\Mozilla
       self.selenium.start()
share|improve this answer
    
thanks. I'm using robot frame work and used the browser name as: firefox D:\\Firefox Portable\\FirefoxPortable\\firefox.exe But the problem is it is giving a 'value error' which says 'firefox D:\Firefox Portable\FirefoxPortable\firefox.exe is not a supported browser.' –  Chamz Des Mar 10 at 4:46
add comment

For Java:

FirefoxBinary binary = new FirefoxBinary(new File("/oracle/firefox-10.0/firefox"));
FirefoxProfile profile = new FirefoxProfile();
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.