Applitools specific parameters like setBaselineName and setMatchLevel are currently not available in Webdriver CSS, but you can still comfortably use it by editing the following commands:
First, open the file: ~/node_modules/webdrivercss/lib > startSession.js
Second, edit the following code from this syntax:
\/**
* initialise applitools session
*/
function(cb) {
request({
url: that.self.host + '/api/sessions/running',
qs: {apiKey: that.applitools.apiKey},
method: 'POST',
json: {
'startInfo': {
'appIdOrName': that.applitools.appName,
'scenarioIdOrName': that.currentArgs.name,
'batchInfo': {
'id': that.applitools.batchId,
'name': that.pagename,
'startedAt': new Date().toISOString()
},
'environment': {
'displaySize': that.displaySize,
'inferred': 'useragent:' + that.useragent
},
'matchLevel': 'Strict',
'agentId': pkg.name + '/' + pkg.version
}
},
headers: that.self.headers,
timeout: that.self.reqTimeout
}, cb);
To this syntax:
/**
* initialise applitools session
*/
function(cb) {
request({
url: that.self.host + '/api/sessions/running',
qs: {apiKey: that.applitools.apiKey},
method: 'POST',
json: {
'startInfo': {
'appIdOrName': that.applitools.appName,
'scenarioIdOrName': that.currentArgs.name,
'batchInfo': {
'id': that.applitools.batchId,
'name': that.pagename,
'startedAt': new Date().toISOString()
},
'environment': {
'displaySize': that.displaySize,
'inferred': 'useragent:' + that.useragent
},
'matchLevel': 'Content',
'agentId': pkg.name + '/' + pkg.version
}
},
headers: that.self.headers,
timeout: that.self.reqTimeout
}, cb);