I have this piece of code that is running on Intern.js and is giving me
errors such as connect ECONNREFUSED and write ECONNRESET.
var self = this;
return this.remote
.setFindTimeout(6000)
.findByXpath(subpageXpath).click().end()
.then(function() {
return Promise.all(expect.map(function(element) {
return self.remote
.findByXpath(element['xpath']).getVisibleText()
.then(function(text) {
assert.equal(text, element['expect']);
console.log('check_cols: ' + text);
return true;
});
}));
});
I have no clue why this happens. It might have something to do with the var
self = this, but I don't know what I am doing wrong, why the error happens,
and how to fix it. The reason I assign this to self is because I wasn't
able to access this.remote inside the inner block. I would really
appreciate some insight on the issue. Thanks beforehand.
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/04bf3b7e-d344-4d8c-af08-c672f8db5a8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.