I count Command
Assert the number of occurances for a text or element
Ignores casing and white-spaces. This behavior is not configurable at the moment.
|target||string||Text or element to find|
|n||number||Number of occurance expected|
I.count("Add to cart", 20);
Asserts that there's 20 occurances of the text "Add to cart".
Asserts that there's 20 occurances of the element with the "product" CSS class.