Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix downloads check on click timing out

Nick Sweetingd41ee112b038
diff --git a/browser_use/browser/profile.py b/browser_use/browser/profile.py
index ed129dcca..19328d0c7 100644
--- a/browser_use/browser/profile.py
+++ b/browser_use/browser/profile.py
@@ -602,7 +602,7 @@ class BrowserProfile(BrowserConnectArgs, BrowserLaunchPersistentContextArgs, Bro
# )
# # --- File paths ---
- downloads_dir: Path | str = Field(
+ downloads_dir: Path | str | None = Field(
default=Path('~/.config/browseruse/downloads').expanduser(),
description='Directory for downloads.',
validation_alias=AliasChoices('save_downloads_path'),