codeceptjs
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -0,1 +1,5 @@ | ||
## 0.2.8 | ||
* [WebDriverIO] added `seeNumberOfElements` by @fabioel | ||
## 0.2.7 | ||
@@ -2,0 +6,0 @@ |
@@ -604,2 +604,16 @@ 'use strict'; | ||
/** | ||
* asserts that an element appears a given number of times in the DOM | ||
* Element is located by label or name or CSS or XPath. | ||
* | ||
* ```js | ||
* I.seeNumberOfElements('#submitBtn', 1); | ||
* ``` | ||
*/ | ||
seeNumberOfElements(selector, num) { | ||
return this.browser.elements(withStrictLocator(selector)) | ||
.then(function (res) { | ||
return assert.equal(res.value.length, num); | ||
}); | ||
} | ||
@@ -606,0 +620,0 @@ /** |
{ | ||
"name": "codeceptjs", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "Modern Era Aceptance Testing Framework for NodeJS", | ||
@@ -5,0 +5,0 @@ "homepage": "http://codecept.io", |
103175
2841