Features
< Back to Blog Overview

Run tests against any Selenium version

2014-01-12
  • Share on Facebook
  • Share on Twitter
  • Share on LinkedIn
  • Share on HackerNews

Our Selenium grid now supports running your Selenium tests with a different version of Selenium.

By default, we always run your tests on Selenium 2.53.1, to ensure maximum performance and stability.


Some customers however like to run their tests on an older/newer version of Selenium. This is now possible by specifying the desired Selenium version in the desired capabilities option.


For example this Python snippet which will run the test on Selenium 2.31.0

import unittest
from selenium import webdriver
from testingbot import driver

class Selenium2TestingBot(unittest.TestCase):

    def setUp(self):
        desired_capabilities = webdriver.DesiredCapabilities.FIREFOX
        desired_capabilities['version'] = 'latest'
        desired_capabilities['platform'] = 'WINDOWS'
        desired_capabilities['name'] = 'Testing Selenium 2 in Python'
        desired_capabilities['selenium-version'] = '2.31.0'

        self.driver = webdriver.Remote(
            desired_capabilities=desired_capabilities,
            command_executor="http://key:secret@hub.testingbot.com/wd/hub"
        )
        self.driver.implicitly_wait(30)

    def test_google(self):
        self.driver.get('http://www.google.com')
        assert "Google" in self.driver.title

    def tearDown(self):
        self.driver.quit()
        unittest.TestCase.tearDown(self)

if __name__ == '__main__':
    unittest.main()
TestingBot Logo

Sign up for a Free Trial

Start testing your apps with TestingBot.

No credit card required.

Other Articles

TestingBot has moved to its own cloud!

Ever since we started TestingBot (almost 2 years ago!) we've been running TestingBot on Amazon AWS (EC2 + S3 + other services).

Read more
TestingBot open-sources NodeJS based Selenium grid

Today we've released our NodeJS code which runs our Selenium hub. This code has been running in production for over 11 months now on a single ...

Read more
Manual Cross Browser Testing

Today we're happy to announce the launch of a new feature: live manual testing.

Read more