UNPKG

chromancer

Version:

A powerful command-line interface for automating Chrome browser using Playwright. Perfect for web scraping, automation, testing, and browser workflows.

19 lines (18 loc) 586 B
export interface CommandError extends Error { action?: string; selector?: string; originalError?: Error; isTimeout?: boolean; } /** * Check if an error is a timeout error */ export declare function isTimeoutError(error: Error): boolean; /** * Format error message with consistent structure */ export declare function formatErrorMessage(action: string, message: string, selector?: string, error?: Error): string; /** * Create a standardized command error */ export declare function handleCommandError(error: Error, action: string, selector?: string): CommandError;