Closed Jav3k closed 5 years ago
Fixed by dev team
test.js (modified version of 'test2' testcase)
const url2 = 'https://google.com/ncr';
module.exports = {
'test2': (browser) => {
browser
.url(url2)
.assert.title('Google')
.execute(function(arg) {
document.querySelector('input[type=text]').value = arg;
return arg;
}, [123], function(res) {
console.log('response:\n', res);
browser.assert.equal(res.value, "123");
})
.end();
},
afterEach: function(client, done) {
setTimeout(function() {
done();
}, 1000);
}
};
nightwatch envs (without tunnel)
"firefox": {
"desiredCapabilities": {
"platform": "Windows 10",
"browserName": "Firefox",
"version": "64.0"
}
},
"edge": {
"desiredCapabilities": {
"platform": "Windows 10",
"browserName": "MicrosoftEdge",
"version": "18.0"
}
},
"ie10": {
"desiredCapabilities": {
"platform": "Windows 7",
"browserName": "Internet Explorer",
"version": "10.0"
}
}
firefox result:
firefox output in dashbord:
edge result:
edge output in dashbord:
ie10 result:
ie10 output in dashbord:
works right with
"chrome": {
"desiredCapabilities": {
"platform": "Windows 10",
"browserName": "Chrome",
"version": "71.0"
}
},
"safari11": {
"desiredCapabilities": {
"platform": "macOS High Sierra",
"browserName": "Safari",
"version": "11.0"
}
},
"safari10": {
"desiredCapabilities": {
"platform" : "macOS Sierra",
"browserName" : "Safari",
"version" : "10.0"
}
},
"ie11": {
"desiredCapabilities": {
"platform" : "Windows 10",
"browserName" : "Internet Explorer",
"version" : "11.0"
}
},
fixed by dev team
Source Files
JS:
HTML for test1:
Output
Nightwatch-cli output:
But in LambdaTest Dashboard at Automation section i got expected result:
Same with 'test2
If i running nightwatch test with my local hub on selenium-server-standalone-3.141.5.jar - there is no errors.
I think your selenium hub does not return result value to my nightwatch, cuz i see right result value in dashboard (screenshot above).
Can you help me?
upd. I work with ssh tunnel. so i tried to run nightwatch with "tunnel: false" - same error