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
Merge remote-tracking branch 'origin/HEAD' into multi-step
magmuellerd3b346733f37
diff --cc browser_use/browser/context.pyindex 74d532363,8fda01ee0..12c9ddce6--- a/browser_use/browser/context.py+++ b/browser_use/browser/context.py@@@ -679,13 -617,13 +679,13 @@@ class BrowserContextdef _enhanced_css_selector_for_element(self, element: DOMElementNode) -> str:"""- Creates a CSS selector for a DOM element, prioritizing unique identifiers.+ Creates a CSS selector for a DOM element, handling various edge cases and special characters.Args:- element: The DOM element to create a selector for+ element: The DOM element to create a selector forReturns:- A valid CSS selector string+ A valid CSS selector string"""try:# Get base selector from XPath