@testwizard/commands-mobile
Version:
22 lines (16 loc) • 587 B
JavaScript
;
const Commands = require('@testwizard/commands-core');
const Result = require('./InitDriverResult');
class InitDriverCommand extends Commands.CommandBase {
constructor(testObject) {
super(testObject, 'Mobile.InitDriver');
}
async execute(appPath) {
const requestObj = appPath === undefined
? []
: [appPath];
const json = await this.executeCommand(requestObj);
return new Result(json, 'initDriver was successful', 'initDriver failed');
}
}
module.exports = InitDriverCommand;