Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

279
Views
how can we resolve error “unknown command: Cannot call non W3C standard command while in W3C mode” in selenium

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: ''
    }
}

};

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!