code: function _fillInputFile(element, value, next) {
          var onUploadDone = function (localPath) {
              element.type(localPath, next);
          };
          this.uploadFile(value, onUploadDone);
      }
docs: upload a file to selenium slave and fill the input with reference.