Skip to content

Commit d18ba32

Browse files
committed
[js] Add W3C compliant mappings for getting and setting the window position
1 parent b7cea82 commit d18ba32

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

javascript/node/selenium-webdriver/CHANGES.md

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
* Fixed a bug where the promise manager would silently drop callbacks after
44
recovering from an unhandled promise rejection.
55

6+
### Changes for W3C WebDriver Spec Compliance
7+
8+
* Updated command mappings for [getting](https://w3c.github.io/webdriver/webdriver-spec.html#get-window-position)
9+
and [setting](https://w3c.github.io/webdriver/webdriver-spec.html#set-window-position)
10+
the window position.
11+
612

713
## v3.0.0-beta-2
814

javascript/node/selenium-webdriver/lib/http.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,11 @@ const COMMAND_MAP = new Map([
197197

198198
/** @const {!Map<string, {method: string, path: string}>} */
199199
const W3C_COMMAND_MAP = new Map([
200+
[cmd.Name.MAXIMIZE_WINDOW, post('/session/:sessionId/window/maximize')],
201+
[cmd.Name.GET_WINDOW_POSITION, get('/session/:sessionId/window/position')],
202+
[cmd.Name.SET_WINDOW_POSITION, post('/session/:sessionId/window/position')],
200203
[cmd.Name.GET_WINDOW_SIZE, get('/session/:sessionId/window/size')],
201204
[cmd.Name.SET_WINDOW_SIZE, post('/session/:sessionId/window/size')],
202-
[cmd.Name.MAXIMIZE_WINDOW, post('/session/:sessionId/window/maximize')],
203205
]);
204206

205207

0 commit comments

Comments
 (0)