[js] Removing scroll argument as it is not ever used
@@ -827,18 +827,15 @@ class WebDriver {
let timeoutMessage = resolveWaitMessage(message)
reject(
new error.TimeoutError(
- `${timeoutMessage}Timed out waiting for promise to resolve after ${
- Date.now() - start
+ `${timeoutMessage}Timed out waiting for promise to resolve after ${Date.now() - start
}ms`
)
)
} catch (ex) {
reject(
new error.TimeoutError(
- `${
- ex.message
- }\nTimed out waiting for promise to resolve after ${
- Date.now() - start
+ `${ex.message
+ }\nTimed out waiting for promise to resolve after ${Date.now() - start
}ms`
)
)
@@ -2728,18 +2725,12 @@ class WebElement {
* Take a screenshot of the visible region encompassed by this element's
* bounding rectangle.
*
- * @param {boolean=} scroll Optional argument that indicates whether the
- * element should be scrolled into view before taking a screenshot.
- * Defaults to false.
* @return {!Promise<string>} A promise that will be
* resolved to the screenshot as a base-64 encoded PNG.
*/
- takeScreenshot(scroll = false) {
+ takeScreenshot() {
return this.execute_(
- new command.Command(command.Name.TAKE_ELEMENT_SCREENSHOT).setParameter(
- 'scroll',
- scroll
- )
+ new command.Command(command.Name.TAKE_ELEMENT_SCREENSHOT)
)
}
}
