UNPKG

@labnex/cli

Version:

CLI for Labnex, an AI-Powered Testing Automation Platform

12 lines 582 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.handleWait = handleWait; async function handleWait(page, // Included for consistency, though not directly used here addLog, timeout) { if (!page) throw new Error('Page context not available for wait. This check is for consistency, even if page is not directly used in this handler.'); const waitTime = timeout || 3000; // Default wait addLog(`Waiting for ${waitTime}ms`); await new Promise(resolve => setTimeout(resolve, waitTime)); } //# sourceMappingURL=handleWait.js.map