UNPKG

playwright-fluent

Version:
18 lines (17 loc) 616 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getNextSiblingsOf = void 0; async function getNextSiblingsOf(handles) { const result = []; for (let index = 0; index < handles.length; index++) { const element = handles[index]; const jsHandle = await element.evaluateHandle((node) => node.nextElementSibling); const nextSiblingElement = jsHandle.asElement(); if (nextSiblingElement === null) { continue; } result.push(nextSiblingElement); } return result; } exports.getNextSiblingsOf = getNextSiblingsOf;