Skip to content

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

never bring_to_front

Nick Sweetingf8ffb01dd6de
diff --git a/browser_use/browser/session.py b/browser_use/browser/session.py
index abbfbdaf0..079e13ead 100644
--- a/browser_use/browser/session.py
+++ b/browser_use/browser/session.py
@@ -2947,7 +2947,8 @@ class BrowserSession(BaseModel):
if self.human_current_page != page:
# TODO: figure out how to do this without bringing the entire window to the foreground and stealing foreground app focus
# might require browser-use extension loaded into the browser so we can use chrome.tabs extension APIs
- await page.bring_to_front()
+ # await page.bring_to_front()
+ pass
self.human_current_page = page