UNPKG

@testwizard/commands-mobile

Version:

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