Zarkonnen / se-interpreter

Interpreter for Selenium Builder JSON scripts based on node.js and wd.
34 stars 31 forks source link

Support for specific browser versions #44

Open bennycode opened 9 years ago

bennycode commented 9 years ago

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 commented 9 years ago

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: