Fix casing on record screen endpoints
MODIFY
docs/mjsonwp/protocol-methods.md
docs/mjsonwp/protocol-methods.md
@@ -109,8 +109,8 @@ POST | `/wd/hub/session/{sessionId}/appium/device/shake`
POST | `/wd/hub/session/{sessionId}/appium/device/lock` | Lock the device.
POST | `/wd/hub/session/{sessionId}/appium/device/unlock` | Unlock the device.
POST | `/wd/hub/session/{sessionId}/appium/device/is_locked` | Check whether the device is locked or not.
-POST | `/wd/hub/session/{sessionId}/appium/startRecordingScreen` | start recording the screen.
-POST | `/wd/hub/session/{sessionId}/appium/stopRecordingScreen` | stop recording the screen.
+POST | `/wd/hub/session/{sessionId}/appium/start_recording_screen` | start recording the screen.
+POST | `/wd/hub/session/{sessionId}/appium/stop_recording_screen` | stop recording the screen.
POST | `/wd/hub/session/{sessionId}/appium/performanceData/types` | returns the information types of the system state which is supported to read as like cpu, memory, network traffic, and battery.
POST | `/wd/hub/session/{sessionId}/appium/getPerformanceData` | returns the information of the system state which is supported to read as like cpu, memory, network traffic, and battery.
POST | `/wd/hub/session/{sessionId}/appium/device/press_keycode` | Press a particular key code on the device.

MODIFY
lib/mjsonwp/routes.js
lib/mjsonwp/routes.js
@@ -297,10 +297,10 @@ const METHOD_MAP = {
'/wd/hub/session/:sessionId/appium/device/is_locked': {
POST: {command: 'isLocked'}
},
- '/wd/hub/session/:sessionId/appium/startRecordingScreen': {
+ '/wd/hub/session/:sessionId/appium/start_recording_screen': {
POST: {command: 'startRecordingScreen', payloadParams: {required: ['filePath', 'videoSize', 'timeLimit', 'bitRate']}}
},
- '/wd/hub/session/:sessionId/appium/stopRecordingScreen': {
+ '/wd/hub/session/:sessionId/appium/stop_recording_screen': {
POST: {command: 'stopRecordingScreen'}
},
'/wd/hub/session/:sessionId/appium/performanceData/types': {

MODIFY
test/mjsonwp/routes-specs.js
test/mjsonwp/routes-specs.js
@@ -38,7 +38,7 @@ describe('MJSONWP', () => {
}
var hash = shasum.digest('hex').substring(0, 8);
// Modify the hash whenever the protocol has intentionally been modified.
- hash.should.equal('3aedf233');
+ hash.should.equal('3e06c342');
});
});

Fix casing on record screen endpoints (#115)