Skip to content

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

dont show dvd animation during evals

Nick Sweetingc16990f46f7e
diff --git a/browser_use/browser/session.py b/browser_use/browser/session.py
index 508dbd3a2..31a16abec 100644
--- a/browser_use/browser/session.py
+++ b/browser_use/browser/session.py
@@ -3020,6 +3020,10 @@ class BrowserSession(BaseModel):
Injects a DVD screensaver-style bouncing logo loading animation overlay into the given Playwright Page.
This is used to visually indicate that the browser is setting up or waiting.
"""
+ if os.environ.get('IS_IN_EVALS', 'false').lower()[0] == 'ty1':
+ # dont bother wasting CPU showing animations during evals
+ return
+
await page.evaluate("""() => {
document.title = 'Setting up...';