UNPKG

@testwizard/commands-mobile

Version:

22 lines (16 loc) 603 B
'use strict'; const Commands = require('@testwizard/commands-core'); const Result = Commands.ResultForOkAndErrorMessage; class HideKeyboardCommand extends Commands.CommandBase { constructor(testObject) { super(testObject, 'Mobile.HideKeyboard'); } async execute(keyCode) { const requestObj = keyCode === undefined ? [] : [keyCode]; const json = await this.executeCommand(requestObj); return new Result(json, 'hideKeyboard was successful', 'hideKeyboard failed'); } } module.exports = HideKeyboardCommand;