Smashtest Patterns - Verify count of elements
18 Nov 2021A smashtest pattern for verifying the number of elements on the page.
* Verify {{element_number}} elements exists for {{element_finder}}
Get elements {
let elements = await $$(l('element_finder'));
return elements.length;
}
Verify number of elements {
expect(prev).to.equal(Number(l('element_number')));
}