Skip to content

Commit

Permalink
feat: Add a missing route for element shadow root (#16538)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Mar 9, 2022
1 parent 16b2e8f commit 493c48d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/base-driver/lib/protocol/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/base-driver/test/protocol/routes-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});

Expand Down

0 comments on commit 493c48d

Please sign in to comment.