I.getCount
Get the number of occurances of a text or element
Usage
I.getCount(target)
Parameters
Parameter | Type | Remarks |
---|---|---|
target | string | The text or element to find |
Example(s)
var count = I.getCount("Add to cart")
Sets the variable count
to the number occurances of the text "Add to cart".
var count = I.getCount(".product")
Sets the variable count
to the number occurances of the element with the CSS class "product".