Skip to content

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

fix(context): no longer modify page on screenshot

Valentin De Matosbf1def969d82
diff --git a/browser_use/browser/context.py b/browser_use/browser/context.py
index 0e9bdc41a..49b686105 100644
--- a/browser_use/browser/context.py
+++ b/browser_use/browser/context.py
@@ -1247,6 +1247,7 @@ class BrowserContext:
screenshot = await page.screenshot(
full_page=full_page,
animations='disabled',
+ caret='initial',
)
screenshot_b64 = base64.b64encode(screenshot).decode('utf-8')