Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
fix: OS error of create_history_gif on Win
vvincent1234e6a9b2c2c623
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.pyindex ba3455205..60582f554 100644--- a/browser_use/agent/service.py+++ b/browser_use/agent/service.py@@ -12,6 +12,7 @@ import uuidfrom io import BytesIOfrom pathlib import Pathfrom typing import Any, Optional, Type, TypeVar+import platformfrom dotenv import load_dotenvfrom langchain_core.language_models.chat_models import BaseChatModel@@ -607,6 +608,9 @@ class Agent:for font_name in font_options:try:+ if platform.platform() == "Windows":+ # Need to specify the abs font path on Windows+ font_name = os.path.join(os.getenv("WIN_FONT_DIR", "C:\\Windows\\Fonts"), font_name + ".ttf")regular_font = ImageFont.truetype(font_name, font_size)title_font = ImageFont.truetype(font_name, title_font_size)goal_font = ImageFont.truetype(font_name, goal_font_size)