driver.quit()
Related, is there a way to run raw selenium code?
Read the API documentation
--cap "name=myTestname"
Read the API documentation
PUT /rest/v1/USERNAME/jobs/JOB_ID
me.resolveBeforeDestroy.push(new Promise(function (resolve) {
var request = require('https').request({
method : 'PUT',
host : 'saucelabs.com',
path : '/rest/v1/' + sl.userName + '/jobs/' + jobId,
auth : sl.userName + ':' + sl.key,
timeout : 10000
}, function (response) {
response.setEncoding('utf8')
var rawData = '';
response.on('data', function (chunk) { return rawData += chunk })
response.on('end', function () {
resolve()
});
})
request.on('error', resolve)
request.end(JSON.stringify({
passed : passed
}))
}).then(function () {
me.debug('Job [' + jobId + '] updated')
return Promise.resolve()
}))
Read the API documentation
test.sauce.getJobId()
test.sauce
request.end(JSON.stringify({
passed : passed
}))
Read the API documentation