codeceptjs
Version:
Modern Era Acceptance Testing Framework for NodeJS
11 lines (8 loc) • 352 B
JavaScript
function ConnectionRefused(err) {
this.message = "Can't connect to WebDriver.\n";
this.message += `${err}\n\n`;
this.message += 'Please make sure Selenium Server (ChromeDriver or PhantomJS) is running and accessible';
this.stack = err.stack;
}
ConnectionRefused.prototype = Object.create(Error.prototype);
module.exports = ConnectionRefused;