feat: Add a missing route for element shadow root
MODIFY
packages/base-driver/lib/protocol/routes.js
packages/base-driver/lib/protocol/routes.js
@@ -207,6 +207,9 @@ const METHOD_MAP = {
'/session/:sessionId/element/:elementId/size': {
GET: {command: 'getSize'}
},
+ '/session/:sessionId/element/:elementId/shadow': {
+ GET: {command: 'elementShadowRoot'}
+ },
'/session/:sessionId/element/:elementId/css/:propertyName': {
GET: {command: 'getCssProperty'}
},

MODIFY
packages/base-driver/test/protocol/routes-specs.js
packages/base-driver/test/protocol/routes-specs.js
@@ -38,7 +38,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('ccbdbf87');
+ hash.should.equal('d17e8165');
});
});

feat: Add a missing route for element shadow root (#16538)