-1
// myCustomCommand.js
module.exports = function() {
this.SOME_NIGHTWATCH_COMMAND(...) // fails, undefined
this.api.SOME_NIGHTWATCH_COMMAND(...) // works
}
任何人都知道這是怎麼回事?Nightwatch.js自定義命令本VS this.api