MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / seeNumberOfElements

Method seeNumberOfElements

lib/helper/Playwright.js:2548–2551  ·  view source on GitHub ↗

* {{> seeNumberOfElements }} * *

(locator, num)

Source from the content-addressed store, hash-verified

2546 *
2547 */
2548 async seeNumberOfElements(locator, num) {
2549 const elements = await this._locate(locator)
2550 return equals(`expected number of elements (${new Locator(locator)}) is ${num}, but found ${elements.length}`).assert(elements.length, num)
2551 }
2552
2553 /**
2554 * {{> seeNumberOfVisibleElements }}

Callers

nothing calls this directly

Calls 3

_locateMethod · 0.95
equalsFunction · 0.90
assertMethod · 0.80

Tested by

no test coverage detected