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?
mertunsall8a634327aef1
diff --git a/browser_use/browser/session.py b/browser_use/browser/session.pyindex 1068896e9..17b5b7667 100644--- a/browser_use/browser/session.py+++ b/browser_use/browser/session.py@@ -3566,10 +3566,8 @@ class BrowserSession(BaseModel):)# not an exception because there's no point in retrying if we hit this, its always pointless to screenshot about:blank# raise ValueError('Refusing to take unneeded screenshot of empty new tab page')- # return a 4px*4px white png to avoid wasting tokens - instead of 1px*1px white png that was not accepted by groq LLaMa models- return (- 'iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAFElEQVR4nGP8//8/AwwwMSAB3BwAlmMEAQBq1Aqg7XL3KQAAAABJRU5ErkJggg=='- )+ # return a 4px*4px white png to avoid wasting tokens - instead of 1px*1px white png that was+ return 'iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAFElEQVR4nGP8//8/AwwwMSAB3BwAlm4DBfIlvvkAAAAASUVORK5CYII='# Always bring page to front before rendering, otherwise it crashes in some cases, not sure whytry: