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
pass special class names
Gregor Žuničb9172cc56136
diff --git a/browser_use/browser/context.py b/browser_use/browser/context.pyindex c7b12f8a7..8fda01ee0 100644--- a/browser_use/browser/context.py+++ b/browser_use/browser/context.py@@ -640,7 +640,8 @@ class BrowserContext:# Escape special characters in class namesif any(char in class_name for char in ':()[],>+~|.# '):# Use attribute contains for special characters- css_selector += f'[class*="{class_name}"]'+ # css_selector += f'[class*="{class_name}"]'+ continueelse:css_selector += f'.{class_name}'