@puberty-labs/clits
Version:
CLiTS (Chrome Logging and Inspection Tool Suite) is a powerful Node.js library for AI-controlled Chrome browser automation, testing, and inspection. Features enhanced CSS selector support (:contains(), XPath), dry-run mode, element discovery tools, and co
14 lines (13 loc) • 458 B
JavaScript
import readline from 'readline';
export async function waitForInteractiveLogin() {
return new Promise((resolve) => {
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
});
rl.question('\n[CLiTS-INSPECTOR] Please log in to the app in the opened browser window, then press Enter to continue...\n', () => {
rl.close();
resolve();
});
});
}