I am using chrome / webdriver/javascript to run my script. Below is the conf file content. chrome version- 95 When i run the command using "protractor e2e/config/conf.js --params.login.userName 'username' --params.login.password 'password' --params.login.env 'UAT'" i get an error "unknown command: Cannot call non W3C standard command while in W3C mode" in selenium". Please suggest!!!!!!
const shell = require('shelljs');
var exec = require('child_process').exec;
exports.config = { specs: ['../specs/HomeDetailsTest.js','../specs/ActivationLockTests.js','../specs/resetPasswordTest.js'], //specs: ['../specs/HomeDetailsTest.js'], //specs: ['../specs/ActivationLockTests.js'], multiCapabilities: [{ //Initiate Chrome browser 'browserName': 'chrome',
'chromeOptions': {
prefs: {
download: {
'prompt_for_download': false,
'directory_upgrade': true
}
}
}
}],
chromeDriver: '../drivers/chromedriver', /*for running on the local,comment when running on rio*/
seleniumServerJar: '../drivers/selenium-server-standalone-3.8.1.jar', /*for running on the local, comment when running on rio,*/
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 10000000,
},
beforeLaunch: function() {
},
onPrepare: '../config/onPrep.js',
onComplete: function() {
var allureCommandLine = require('allure-commandline');
var aLib = require('../lib/appLib.js');
var generation = allureCommandLine(['generate', 'allure-results', '--report-dir', 'report/HTMLReport' + aLib.getCurrentTimeStamp()]);
generation.on('exit', function(callback) {
console.log('Generation is finished with code:');
});
//shell.exec('rm -rf downloads/uploadfiles/TestBatch*.csv');
},
params: {
login: {
userName: '',
password: '',
env: ''
}
}
};