If I have something like
return this.remote
.findByXpath('xpath to open menu').click().end()
.then(function() {
// check menu items
...
return this.remote
.findByXpath('xpath to close menu').click.end()
});
It gives me an ECONNREFUSED error. How do I nest calls with the this.remote Command object?