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
lower max screenshot size
Nick Sweeting93b6b365f5ac
diff --git a/browser_use/browser/session.py b/browser_use/browser/session.pyindex 2eeebffba..cccec9649 100644--- a/browser_use/browser/session.py+++ b/browser_use/browser/session.py@@ -59,7 +59,7 @@ GLOBAL_PATCHRIGHT_API_OBJECT = None # never instantiate the patchright API objeGLOBAL_PLAYWRIGHT_EVENT_LOOP = None # track which event loop the global objects belong toGLOBAL_PATCHRIGHT_EVENT_LOOP = None # track which event loop the global objects belong to-MAX_SCREENSHOT_HEIGHT = 4000+MAX_SCREENSHOT_HEIGHT = 2000def _log_glob_warning(domain: str, glob: str, logger: logging.Logger):