add getting active element for w3c
MODIFY
lib/mjsonwp/routes.js
lib/mjsonwp/routes.js
@@ -117,6 +117,7 @@ const METHOD_MAP = {
POST: {command: 'findElements', payloadParams: {required: ['using', 'value']}}
},
'/wd/hub/session/:sessionId/element/active': {
+ GET: {command: 'active'}, // W3C: https://w3c.github.io/webdriver/webdriver-spec.html#dfn-get-active-element
POST: {command: 'active'}
},
'/wd/hub/session/:sessionId/element/:elementId': {

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('a991dc46');
+ hash.should.equal('6b555735');
});
});

add getting active element for w3c (#163)