se-interpreter icon indicating copy to clipboard operation
se-interpreter copied to clipboard

Support for specific browser versions

Open bennycode opened this issue 10 years ago • 1 comments

Hello,

In the company where I work, we use the "se-interpreter" to run SeleniumBuilder tests on our web application builds. It's such a great tool and I am so happy that it is so simple to use.

Is it possible to add a specific browser version to the "browserOptions"? Because with the setup we run now, it always tests the latest browser version available on Sauce Labs.

Our config is:

{
  "type": "interpreter-config",
  "configurations": [
    {
      "settings": [
        {
          "driverOptions": {
            "host": "ondemand.saucelabs.com",
            "port": 80
          },
          "browserOptions": {
            "browserName": "firefox",
            "username": "${SAUCE_USERNAME}",
            "accessKey": "${SAUCE_ACCESS_KEY}"
          }
        }
      ],
      "scripts": [
        "selenium/tests/*"
      ]
    }
  ]
}

bennycode avatar Feb 19 '15 15:02 bennycode

Ok, I found what I was searching for. There is version and platform which can be defined within browserOptions.

The values for version and platform can be checked on the Sauce Labs Platform Configurator.

Example

"settings": [
    {
        "driverOptions": {
            "host": "ondemand.saucelabs.com",
            "port": 80
        },
        "browserOptions": {
            "browserName": "firefox",
            "username": "${SAUCE_USERNAME}",
            "accessKey": "${SAUCE_ACCESS_KEY}"
        }
    },
    {
        "driverOptions": {
            "host": "ondemand.saucelabs.com",
            "port": 80
        },
        "browserOptions": {
            "platform": "Windows 7",
            "browserName": "chrome",
            "version": "26.0",
            "username": "${SAUCE_USERNAME}",
            "accessKey": "${SAUCE_ACCESS_KEY}"
        }
    }
]

It might be worth mentioning these properties in your README.MD file.

Keep up the good work and thanks for se-interpreter. It's great! :smiley:

bennycode avatar Feb 20 '15 22:02 bennycode