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

Method seeNumberOfVisibleElements

lib/helper/Playwright.js:2558–2561  ·  view source on GitHub ↗

* {{> seeNumberOfVisibleElements }} * *

(locator, num)

Source from the content-addressed store, hash-verified

2556 *
2557 */
2558 async seeNumberOfVisibleElements(locator, num) {
2559 const res = await this.grabNumberOfVisibleElements(locator)
2560 return equals(`expected number of visible elements (${new Locator(locator)}) is ${num}, but found ${res}`).assert(res, num)
2561 }
2562
2563 /**
2564 * {{> setCookie }}

Callers

nothing calls this directly

Calls 3

equalsFunction · 0.90
assertMethod · 0.80

Tested by

no test coverage detected