Skip to content

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

remove some uneccessary space

katiue8648b6315fdf
diff --git a/browser_use/browser/context.py b/browser_use/browser/context.py
index cc8404a4b..6dc5b0a72 100644
--- a/browser_use/browser/context.py
+++ b/browser_use/browser/context.py
@@ -788,7 +788,7 @@ class BrowserContext:
tag_name = element.tag_name or '*'
return f"{tag_name}[highlight_index='{element.highlight_index}']"
- async def get_locate_element(self, element: DOMElementNode) -> ElementHandle | None:
+ async def get_locate_element(self, element: DOMElementNode) -> ElementHandle | None:
current_frame = await self.get_current_page()
# Start with the target element and collect all parents