UNPKG

@labnex/cli

Version:

CLI for Labnex, an AI-Powered Testing Automation Platform

12 lines 432 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.extractGeneralSelector = extractGeneralSelector; function extractGeneralSelector(step) { const selectorPattern = /(css|xpath|id|name|text):\s*([^,\s]+)/i; const match = step.match(selectorPattern); if (match && match[2]) { return match[2].trim(); } return undefined; } //# sourceMappingURL=extractGeneralSelector.js.map