I.getCount

Get the number of occurances of a text or element

Usage

I.getCount(target)

Parameters

ParameterTypeRemarks
targetstringThe 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".

Last Updated: