Add an optional flags parameter to press_key_code endpoint
MODIFY
lib/protocol/routes.js
lib/protocol/routes.js
@@ -355,10 +355,10 @@ const METHOD_MAP = {
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']}}
+ POST: {command: 'pressKeyCode', payloadParams: {required: ['keycode'], optional: ['metastate', 'flags']}}
},
'/wd/hub/session/:sessionId/appium/device/long_press_keycode': {
- POST: {command: 'longPressKeyCode', payloadParams: {required: ['keycode'], optional: ['metastate']}}
+ POST: {command: 'longPressKeyCode', payloadParams: {required: ['keycode'], optional: ['metastate', 'flags']}}
},
'/wd/hub/session/:sessionId/appium/device/finger_print': {
POST: {command: 'fingerprint', payloadParams: {required: ['fingerprintId']}}

MODIFY
test/protocol/routes-specs.js
test/protocol/routes-specs.js
@@ -40,7 +40,7 @@ describe('Protocol', function () {
}
let hash = shasum.digest('hex').substring(0, 8);
// Modify the hash whenever the protocol has intentionally been modified.
- hash.should.equal('28048f99');
+ hash.should.equal('77715dea');
});
});

Add an optional flags parameter to press_key_code endpoint (#208)