UNPKG

@labnex/cli

Version:

CLI for Labnex, an AI-Powered Testing Automation Platform

12 lines 424 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.extractScrollTarget = extractScrollTarget; function extractScrollTarget(step) { const scrollTargetPattern = /(?:scroll|scroll to):\s*([^,\s]+)/i; const match = step.match(scrollTargetPattern); if (match && match[1]) { return match[1].trim(); } return undefined; } //# sourceMappingURL=extractScrollTarget.js.map