mardi 10 novembre 2020

Run IE Tests with nightwatch/selenium on Linux

My task is to test a Vue Application on IE 11. I'm working on a Linux (Ubuntu 18) OS my Browser tests run with nightwatch.

What do I have to do to run my tests on IE 11 aswell?

The last nightwatch.json experiment that failed is:

"selenium": {
    "start_process": true,
    "port": 9515,
    "host": "localhost",
    "server_path": "tests/selenium-server-standalone-3.9.1.jar",
    "cli_args": {
        "webdriver.chrome.driver": "node_modules/chromedriver/lib/chromedriver/chromedriver",
        "webdriver.ie.driver": "tests/IEDriverServer.exe"
    }
},
....
"ie": {
        "desiredCapabilities": {
            "browserName": "internet explorer",
            "elementScrollBehavior": 1,
            "javascriptEnabled": true,
            "acceptSslCerts": true
        }
    },

My npm script command is:

"test:ie": "LANGUAGE=de_DE.UTF-8 vue-cli-service test:e2e tests/e2e/main/specs --env ie"

Used like this:

$ npm run test:ie

The Error Message I get is:

⠙ Connecting to localhost on port 9515...
 Response 500 POST /wd/hub/session (152ms)
 {
   value: {
     stacktrace: '',
     message: 'Unable to create new service: InternetExplorerDriverService\n' +
     "Build info: version: '3.9.1', revision: '63f7b50', time: '2018-02-07T22:42:28.403Z'\n" +
     "System info: host: 'ericPC', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '5.4.0-52-generic', java.version: '1.8.0_272'\n" +
     'Driver info: driver.version: unknown',
   error: 'session not created'
 },
 status: 33
⚠ Error connecting to localhost on port 9515.

So, how can I run my nightwatch tests with IE 11 aswell?

Aucun commentaire:

Enregistrer un commentaire