UNPKG

@testwizard/commands-mobile

Version:

20 lines (14 loc) 524 B
'use strict'; const Commands = require('@testwizard/commands-core'); const Result = Commands.ResultForOkAndErrorMessage; class QuitDriverCommand extends Commands.CommandBase { constructor(testObject) { super(testObject, 'Mobile.QuitDriver'); } async execute() { const requestObj = []; const json = await this.executeCommand(requestObj); return new Result(json, 'quitDriver was successful', 'quitDriver failed'); } } module.exports = QuitDriverCommand;