Add W3C /actions endpoint
MODIFY
lib/basedriver/commands/index.js
lib/basedriver/commands/index.js
@@ -9,7 +9,7 @@ Object.assign(
sessionCmds,
settingsCmds,
timeoutCmds,
- findCmds
+ findCmds,
// add other command types here
);

MODIFY
lib/mjsonwp/routes.js
lib/mjsonwp/routes.js
@@ -231,6 +231,9 @@ const METHOD_MAP = {
'/wd/hub/session/:sessionId/touch/doubleclick': {
POST: {}
},
+ '/wd/hub/session/:sessionId/actions': {
+ POST: {command: 'performActions', payloadParams: {required: ['actions']}},
+ },
'/wd/hub/session/:sessionId/touch/longclick': {
POST: {command: 'touchLongClick', payloadParams: {required: ['elements']}}
},

MODIFY
test/mjsonwp/routes-specs.js
test/mjsonwp/routes-specs.js
@@ -40,7 +40,7 @@ describe('MJSONWP', () => {
}
let hash = shasum.digest('hex').substring(0, 8);
// Modify the hash whenever the protocol has intentionally been modified.
- hash.should.equal('243e174d');
+ hash.should.equal('346c41c1');
});
});

Add W3C /actions endpoint (#146)