Skip to content

Commit 978a22a

Browse files
committed
[js] deprecate some methods in advance of 3.0
1 parent 1163e40 commit 978a22a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

javascript/node/selenium-webdriver/CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
module to break a circular dependency.
2424
* Added support for setting the username and password in basic auth pop-up
2525
dialogs (currently IE only).
26+
* Deprecated `WebElement#getInnerHtml()` and `WebEleemnt#getOuterHtml()`
2627
* FIXED: `io.findInPath()` will no longer match against directories that have
2728
the same basename as the target file.
2829
* FIXED: `phantomjs.Driver` now takes a third argument that defines the path to

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,6 +2135,7 @@ class WebElement {
21352135
* Schedules a command to retrieve the outer HTML of this element.
21362136
* @return {!promise.Promise<string>} A promise that will be
21372137
* resolved with the element's outer HTML.
2138+
* @deprecated Use {@link WebDriver#executeScript()}
21382139
*/
21392140
getOuterHtml() {
21402141
return this.driver_.executeScript(function() {
@@ -2153,6 +2154,7 @@ class WebElement {
21532154
* Schedules a command to retrieve the inner HTML of this element.
21542155
* @return {!promise.Promise<string>} A promise that will be
21552156
* resolved with the element's inner HTML.
2157+
* @deprecated Use {@link WebDriver#executeScript()}
21562158
*/
21572159
getInnerHtml() {
21582160
return this.driver_.executeScript('return arguments[0].innerHTML', this);

0 commit comments

Comments
 (0)