Skip to content

Commit

Permalink
[js] fix documentation on By.js
Browse files Browse the repository at this point in the history
Fixes #7251
  • Loading branch information
jleyba committed Jun 5, 2019
1 parent 6085aa6 commit 117b05b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions javascript/node/selenium-webdriver/lib/by.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,12 @@ class By {
}

/**
* Locates an elements by evaluating a
* {@linkplain webdriver.WebDriver#executeScript JavaScript expression}.
* The result of this expression must be an element or list of elements.
* Locates elements by evaluating a `script` that defines the body of
* a {@linkplain webdriver.WebDriver#executeScript JavaScript function}.
* The return value of this function must be an element or an array-like
* list of elements. When this locator returns a list of elements, but only
* one is expected, the first element in this list will be used as the
* single element value.
*
* @param {!(string|Function)} script The script to execute.
* @param {...*} var_args The arguments to pass to the script.
Expand Down

0 comments on commit 117b05b

Please sign in to comment.