chore(base-driver): Add params to setWindowRect handler
MODIFY
packages/base-driver/lib/protocol/routes.js
packages/base-driver/lib/protocol/routes.js
@@ -614,7 +614,7 @@ const METHOD_MAP = {
},
'/session/:sessionId/window/rect': {
GET: {command: 'getWindowRect'},
- POST: {command: 'setWindowRect'},
+ POST: {command: 'setWindowRect', payloadParams: {required: ['x', 'y', 'width', 'height']}},
},
'/session/:sessionId/window/maximize': {
POST: {command: 'maximizeWindow'}

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('2ebb6a16');
+ hash.should.equal('4d201f22');
});
});

chore(base-driver): Add params to setWindowRect handler (#15974)