So, we started analyzing the reason behind it and found out that the response coming from the Grid differs from the one locally on the Standalone server, when creating the session.
Here's the response to the POST to /wd/hub/session, on the Standalone:
{ status: 0,
sessionId: 'c005bbef-c6ea-7240-ba27-20d3f2a9e774',
value: { 'moz:profile': '/var/folders/v1/c0dtv_8s5c9dgws85x1s4pww0000gp/T/rust_mozprofile.FbUYSJlbNf5Y', rotatable: false,
timeouts: { implicit: 0, pageLoad: 300000, script: 30000 },
pageLoadStrategy: 'normal',
'moz:headless': false,
'moz:accessibilityChecks': false,
acceptInsecureCerts: false,
browserVersion: '57.0.1',
platformVersion: '15.6.0',
'moz:processID': 96619,
browserName: 'firefox',
platformName: 'darwin',
'moz:webdriverClick': false
}
}
And this is the response of the same comand, but on the Grid:
{
value: {
sessionId: 'a139d764-e1a9-4312-b8ff-a24601611ba6',
capabilities: {
'moz:profile': '/tmp/rust_mozprofile.fW8CDJwT8w3Y',
rotatable: false,
timeouts: { implicit: 0, pageLoad: 300000, script: 30000 },
pageLoadStrategy: 'normal',
'moz:headless': false,
'moz:accessibilityChecks': false,
acceptInsecureCerts: false,
browserVersion: '57.0.1',
platformVersion: '4.4.64+',
'moz:processID': 1799,
browserName: 'firefox',
platformName: 'linux',
'moz:webdriverClick': false
}
}
}
And, like this, many other commands are being returned without the status property which is a base for the commands' execution on Nightwatch.
Did you ever experience this?
If so, did you fix it? If you did, how?
Kind regards,
Ricardo Machado
$ java -jar ./node_modules/selenium-server-standalone-jar/jar/selenium-server-standalone-3.8.1.jar -port 4445 -role node -hub http://localhost:4444/grid/register -enablePassThrough false
java -jar -Dwebdriver.chrome.driver=chromedriver.exe -Dwebdriver.ie.driver=IEDriverServer.exe -Dwebdriver.gecko.driver=geckodriver.exe selenium-server-standalone-3.8.1.jar -enablePassThrough false