File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed
javascript/node/selenium-webdriver Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## v2.53.0-dev
2
+
3
+ ### Change Summary
4
+
5
+ * For consistency with the other Selenium language bindings,
6
+ ` WebDriver#isElementPresent() ` and ` WebElement#isElementPresent() ` have
7
+ been deprecated. These methods will be removed in v3.0. Use the findElements
8
+ command to test for the presence of an element:
9
+
10
+ driver.findElements(By.css('.foo')).then(found => !!found.length);
11
+
12
+
1
13
## v2.52.0
2
14
3
15
### Notice
Original file line number Diff line number Diff line change @@ -872,6 +872,11 @@ class WebDriver {
872
872
* @param {!(by.By|Function) } locator The locator to use.
873
873
* @return {!promise.Promise<boolean> } A promise that will resolve
874
874
* with whether the element is present on the page.
875
+ * @deprecated This method will be removed in Selenium 3.0 for consistency
876
+ * with the other Selenium language bindings. This method is equivalent
877
+ * to
878
+ *
879
+ * driver.findElements(locator).then(e => !!e.length);
875
880
*/
876
881
isElementPresent ( locator ) {
877
882
return this . findElements . apply ( this , arguments ) . then ( function ( result ) {
@@ -1769,6 +1774,11 @@ class WebElement {
1769
1774
* searching for the element.
1770
1775
* @return {!promise.Promise<boolean> } A promise that will be
1771
1776
* resolved with whether an element could be located on the page.
1777
+ * @deprecated This method will be removed in Selenium 3.0 for consistency
1778
+ * with the other Selenium language bindings. This method is equivalent
1779
+ * to
1780
+ *
1781
+ * element.findElements(locator).then(e => !!e.length);
1772
1782
*/
1773
1783
isElementPresent ( locator ) {
1774
1784
return this . findElements ( locator ) . then ( function ( result ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " selenium-webdriver" ,
3
- "version" : " 2.52.0 " ,
3
+ "version" : " 2.53.0-dev " ,
4
4
"description" : " The official WebDriver JavaScript bindings from the Selenium project" ,
5
5
"license" : " Apache-2.0" ,
6
6
"keywords" : [
You can’t perform that action at this time.
0 commit comments