MCPcopy
hub / github.com/codeceptjs/CodeceptJS / seeNumberOfVisibleElements

Method seeNumberOfVisibleElements

lib/helper/Puppeteer.js:1864–1867  ·  view source on GitHub ↗

* {{> seeNumberOfVisibleElements }} *

(locator, num)

Source from the content-addressed store, hash-verified

1862 *
1863 */
1864 async seeNumberOfVisibleElements(locator, num) {
1865 const res = await this.grabNumberOfVisibleElements(locator)
1866 return equals(`expected number of visible elements (${new Locator(locator)}) is ${num}, but found ${res}`).assert(res, num)
1867 }
1868
1869 /**
1870 * {{> setCookie }}

Callers 5

testsFunction · 0.45
coverage_test.jsFile · 0.45

Calls 3

equalsFunction · 0.90
assertMethod · 0.80

Tested by

no test coverage detected