Skip to content

Fallback failed: could not get AXWindows #26

Description

@web-differently12

Bug Description

ARNING [mlx_use.mac.tree] Could not get main window (error: -25212), trying fallback attribute AXWindows
ERROR [mlx_use.mac.tree] Fallback failed: could not get AXWindows (error: 0)
ERROR [mlx_use.mac.tree] Could not determine a main window for the application.
INFO [mlx_use.agent.service] ⚠ Eval: Failed - Requires enabling 'Allow JavaScript from Apple Events' in the Developer section of Safari settings.
INFO [mlx_use.agent.service] 🧠 Memory: Safari is opened, On Kayak.com page
INFO [mlx_use.agent.service] 🎯 Next goal: Notify user that 'Allow JavaScript from Apple Events' needs to be enabled in Safari.
INFO [mlx_use.agent.service] 🛠️ Action 1/1: {"done":{"text":"Sorry, to accomplish the task, please enable 'Allow JavaScript from Apple Events' in the Developer section of Safari settings."}}
INFO [mlx_use.agent.service] 📄 Result: Sorry, to accomplish the task, please enable 'Allow JavaScript from Apple Events' in the Developer section of Safari settings.
INFO [mlx_use.agent.service]
📍 Step 10
WARNING [mlx_use.mac.tree] Could not get main window (error: -25212), trying fallback attribute AXWindows
ERROR [mlx_use.mac.tree] Fallback failed: could not get AXWindows (error: 0)
ERROR [mlx_use.mac.tree] Could not determine a main window for the application.

Reproduction Steps

alll install ok

Code Sample

Fallback failed: could not get AXWindows

Version

Name: browser-use Version: 0.1.40 Location: /Users/mahjoubhamid/.venv/lib/python3.11/site-packages Requires: httpx, langchain-anthropic, langchain-core, langchain-ollama, langchain-openai, markdownify, playwright, posthog, pydantic, python-dotenv, requests, setuptools Required-by:

LLM Model

GPT-4o

Operating System

15.4.1 (24E263)

Relevant Log Output

e Events' in the Developer section of Safari settings.
INFO     [mlx_use.agent.service]
📍 Step 10
WARNING  [mlx_use.mac.tree] Could not get main window (error: -25212), trying fallback attribute AXWindows
ERROR    [mlx_use.mac.tree] Fallback failed: could not get AXWindows (error: 0)
ERROR    [mlx_use.mac.tree] Could not determine a main window for the application.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions