Skip to content

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

Update browser_use/browser/session.py

Nick Sweeting2ff49d14d71a
diff --git a/browser_use/browser/session.py b/browser_use/browser/session.py
index afb9e9576..a7ba61151 100644
--- a/browser_use/browser/session.py
+++ b/browser_use/browser/session.py
@@ -1067,7 +1067,7 @@ class BrowserSession(BaseModel):
)
cookies_path = Path(self.browser_profile.cookies_file)
- if (not cookies_path.is_absolute()) and not str(cookies_path).startswith('.'):
+ if not cookies_path.is_absolute():
cookies_path = Path(self.browser_profile.downloads_dir or '.') / cookies_path
if cookies_path.exists():