Skip to content

Commit 92c8700

Browse files
juperalajleyba
authored andcommitted
Fix for Window.setRect() API documentation. (SeleniumHQ#5460)
The current API documentation for Window.setRect() refers to wrong parameters to be omitted for setting only size or position. Parameters updated to be inline with the implementation.
1 parent 1a5e10c commit 92c8700

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,8 +1440,8 @@ class Window {
14401440

14411441
/**
14421442
* Sets the current top-level window's size and position. You may update just
1443-
* the size by omitting `width` & `height`, or just the position by omitting
1444-
* `x` & `y` options.
1443+
* the size by omitting `x` & `y`, or just the position by omitting
1444+
* `width` & `height` options.
14451445
*
14461446
* @param {{x: (number|undefined),
14471447
* y: (number|undefined),

0 commit comments

Comments
 (0)