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

Function getVisibleElements

lib/helper/Playwright.js:4246–4257  ·  view source on GitHub ↗
(elements)

Source from the content-addressed store, hash-verified

4244}
4245
4246async function getVisibleElements(elements) {
4247 const visibleElements = []
4248 for (const element of elements) {
4249 if (await element.isVisible()) {
4250 visibleElements.push(element)
4251 }
4252 }
4253 if (visibleElements.length === 0) {
4254 return elements
4255 }
4256 return visibleElements
4257}
4258
4259async function proceedClick(locator, context = null, options = {}) {
4260 let matcher = await this._getContext()

Callers 1

proceedClickFunction · 0.85

Calls 2

isVisibleMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected