update required an optional parameters for getting performance
MODIFY
lib/mjsonwp/routes.js
lib/mjsonwp/routes.js
@@ -301,7 +301,7 @@ const METHOD_MAP = {
POST: {command: 'getPerformanceDataTypes'}
},
'/wd/hub/session/:sessionId/appium/getPerformanceData': {
- POST: {command: 'getPerformanceData', payloadParams: {required: ['applicationPackageName', 'performanceDataType']}}
+ POST: {command: 'getPerformanceData', payloadParams: {required: ['packageName', 'dataType'], optional: ['dataReadTimeout']}}
},
'/wd/hub/session/:sessionId/appium/device/press_keycode': {
POST: {command: 'pressKeyCode', payloadParams: {required: ['keycode'], optional: ['metastate']}}

update required an optional parameters for getting performance