export class AutomationTimeoutError extends Error {
constructor(message) {
super(message);
this.name = "AutomationTimeoutError";
}
}async function safeClick(action) {
try {
await action();
} catch (error) {
console.warn("Non-fatal element click failed, continuing:", error.message);
} finally {
console.log("Cleanup hook executed");
}
}