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
fix lint
Gaurav Rawat3ac2f6f85f66
diff --git a/tests/ci/test_element_click_error.py b/tests/ci/test_element_click_error.pyindex a9e007fc8..dba14b13d 100644--- a/tests/ci/test_element_click_error.py+++ b/tests/ci/test_element_click_error.py@@ -54,13 +54,13 @@ class TestElementClickErrorMessage:# THE BUG: Currently line 347 raises with {e} (outer exception)# After fix: should raise with {js_e} (actual JS click failure)print(f'Error message: {error_message}')- print(f'Contains outer error \'{outer_error_msg}\': {outer_error_msg in error_message}')- print(f'Contains inner error \'{js_error_msg}\': {js_error_msg in error_message}')+ print(f"Contains outer error '{outer_error_msg}': {outer_error_msg in error_message}")+ print(f"Contains inner error '{js_error_msg}': {js_error_msg in error_message}")# This assertion FAILS with the bug, PASSES after fixassert js_error_msg in error_message, (f'BUG DETECTED: Error message shows wrong exception!\n'- f'Expected to see JS error: \'{js_error_msg}\'\n'+ f"Expected to see JS error: '{js_error_msg}'\n"f'But got: {error_message}\n'f'This confirms line 347 bug: uses {{e}} instead of {{js_e}}')