NIghtwatch Upgrade Error from 1.6.4 to 1.7
Asked 07 September, 2021
Viewed 1.3K times
  • 61
Votes

Issue: I am getting "unable to create session error" after upgrading Nightwatch from 1.6.4 to 1.7.

Findings:

  • The code is working fine when I have downgraded the Nightwatch version back to 1.6.4
  • Tried adding the 1.7 additional dependency called "didyoumean".
  • Tried upgrading node and npm
 Connecting to localhost on port 4444...
   Response 500 POST /wd/hub/session (2369ms)
   {
     value: {
       stacktrace: '',
       message: 'Unable to create session from {
' +
         '  "desiredCapabilities": {
' +
         '    "nativeEvents": true,
' +
         '    "acceptSslCerts": true,
' +
         '    "firefoxOptions": {
' +
         '      "w3c": false
' +
         '    },
' +
         '    "name": "Masterdata Detail",
' +
         '    "browserName": "firefox",
' +
         '    "javascriptEnabled": true,
' +
         '    "screenResolution": "1280x800",
' +
         '    "ignoreProtectedModeSettings": false,
' +
         '    "useAutomationExtension": true,
' +
         '    "moz:firefoxOptions": {
' +
         '      "w3c": false
' +
         '    }
' +
         '  },
' +
         '  "capabilities": {
' +
         '    "firstMatch": [
' +
         '      {
' +
         '        "browserName": "firefox",
' +
         '        "moz:firefoxOptions": {
' +
         '          "w3c": false
' +
         '        }
' +
         '      }
' +
         '    ]
' +
         '  }
' +
         '}
' +
         "Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
" +
         "System info: host: 'DUS30VDCD590220', ip: '10.31.88.239', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '16.0.1'
" +
         'Driver info: driver.version: unknown',
       error: 'session not created'
     },
     status: 33
‼ Error connecting to localhost on port 4444.

0 Answer