(elements)
| 4244 | } |
| 4245 | |
| 4246 | async 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 | |
| 4259 | async function proceedClick(locator, context = null, options = {}) { |
| 4260 | let matcher = await this._getContext() |
no test coverage detected