diff --git a/packages/shortest/src/browser-use/browser.ts b/packages/shortest/src/browser-use/browser.ts index 74b4b8a5..147f52cb 100644 --- a/packages/shortest/src/browser-use/browser.ts +++ b/packages/shortest/src/browser-use/browser.ts @@ -156,9 +156,19 @@ export class BrowserTool extends BaseBrowserTool { } private async showClickAnimation(): Promise { - await this.page.evaluate(() => { - (window as any).showClick(); - }); + try { + await this.page.evaluate(() => { + const cursor = document.getElementById('ai-cursor'); + if (cursor) { + cursor.style.transform = 'translate(-50%, -50%) scale(0.8)'; + setTimeout(() => { + cursor.style.transform = 'translate(-50%, -50%) scale(1)'; + }, 100); + } + }); + } catch (error) { + // fail silently + } } async execute(input: ActionInput): Promise {