Skip to content

Commit

Permalink
Fix for Window.setRect() API documentation. (#5460)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
juperala authored and jleyba committed Feb 8, 2018
1 parent 1a5e10c commit 92c8700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javascript/node/selenium-webdriver/lib/webdriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -1440,8 +1440,8 @@ class Window {

/**
* Sets the current top-level window's size and position. You may update just
* the size by omitting `width` & `height`, or just the position by omitting
* `x` & `y` options.
* the size by omitting `x` & `y`, or just the position by omitting
* `width` & `height` options.
*
* @param {{x: (number|undefined),
* y: (number|undefined),
Expand Down

0 comments on commit 92c8700

Please sign in to comment.