module.exports = HtmlFile;

function HtmlFile(path) {
  this.path = path;
}

HtmlFile.prototype.querySelectorAll = function(ph, style, cb) {
  var _this = this;
  return new Promise(function(resolve) {
    ph.createPage(function(page) {
      page.open(_this.path, function() {
        page.evaluate((function() {
          return 'function() { return document.querySelectorAll("' + style + '"); }';
        }()), function(value) {
          cb(value);
          resolve();
        });
      });
    });
  });
};

module.exports = HtmlFile;

function HtmlFile(path) {
  this.path = path;
}

HtmlFile.prototype.querySelectorAll = function(ph, style, cb) {
  var _this = this;
  return new Promise(function(resolve) {
    ph.createPage(function(page) {
      page.open(_this.path, function(status) {
        page.evaluate((function() {
          return 'function() { return document.querySelectorAll("' + style + '"); }';
        }()), function(value) {
          cb(value);
          resolve();
        });
      });
    });
  });
};

--- 
+++ 
@@ -8,7 +8,7 @@
   var _this = this;
   return new Promise(function(resolve) {
     ph.createPage(function(page) {
-      page.open(_this.path, function(status) {
+      page.open(_this.path, function() {
         page.evaluate((function() {
           return 'function() { return document.querySelectorAll("' + style + '"); }';
         }()), function(value) {
Fix '"status" is defined but never used'
