The following script works, however, it appears that when an error occurs in one test, it will cause all the other ones to fail as well. How do you make it so that they will run independently of each other?
var combos = [
['Windows 7', 'firefox'],
['Windows 7', 'chrome'],
['Windows 7', 'iexplore'],
['Windows 7', 'opera'],
['Windows 8', 'firefox'],
['Windows 8', 'chrome'],
['Windows 8', 'iexplore'],
['Windows 8', 'opera']
];
combos.forEach(function(currentValue) {
var options = {
desiredCapabilities: {
browserName: currentValue[1],
platform: currentValue[0]
},
host: 'ondemand.saucelabs.com',
port: 80,
user: [redacted],
key: [redacted],
logLevel: "verbose"
};
var webdriverio = require('webdriverio');
var client = webdriverio
.remote(options)
.init()
.url('http://google.com')
...
});