1

Selenium invokes only the installed version of the browser to run its script. how can i add this feature to my selenium framework like: run the script on Chrome 50,52 and 53. same with firefox, Safari and IE.

1 Answer 1

1

On a single computer you can only install one version of each browser. So to run your Selenium tests against multiple version you will need multiple machines.

  • Easiest: Setup a virtual machine, install browser version of choice (disable automatic updates), install test-runner tools, copy tests to virtual machine and run the tests.
  • Medium: Run you tests against online browsers services, like BrowserStack, SauceLabs or other alternatives.
  • Hardest: Setup a Selenium Grid and configure each virtual machine with unique version numbers. Ask the grid for capabilities so your tests runs can find the correct nodes on the grid.
  • Most time consuming: Removing the browsers version and reinstalling the version you want to test against.

Another issue you will have is finding the older versions, but searching for them is possible. Directing you to all older versions is to broad for this question. For the Safari on Mac you might need older version of the operating system as Safari is only shipped with OS-updates.

I would recommend using one of the online services if you really need to test and support a broad range of browser versions. Else just support the latest version and add a disclaimer that the users need to upgrade or expect possible issues.

2
  • It is possible to install more than one version of a browser on a machine. For FireFox you can use the collection form utilu: utilu.com/UtiluMFC I don't know how this works with Selnium. You can also use Browseemall, a testing tool for testing browser compatability. That tool claims good integration with Selenium.
    – Patrick
    Commented Aug 14, 2017 at 6:44
  • Yes, there are some ways to have multiple browser of FF and IE, but I am not sure I would recommend them. Portable would be one option: portableapps.com/apps/internet/google_chrome_portable but it is not the same, possible you could have other problems or things that work slightly different as these browsers are repackages. As a tester I would like to mimic the real experience as much as possible. Never the less please add another answer if you have better ideas :) Commented Aug 14, 2017 at 8:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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