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
renamed otp_key to otp_secret
Maxim Kopecki4eb4191cf89b
diff --git a/browser_use/controller/registry/service.py b/browser_use/controller/registry/service.pyindex a20e41d7a..3cf2e1fe7 100644--- a/browser_use/controller/registry/service.py+++ b/browser_use/controller/registry/service.py@@ -446,11 +446,10 @@ class Registry(Generic[Context]):for placeholder in matches:if placeholder in applicable_secrets:-# generate a totp code if secret is a 2fa secret- if "otp_key" in placeholder:+ if "otp_secret" in placeholder:totp = pyotp.TOTP(applicable_secrets[placeholder], digits=6)- applicable_secrets[placeholder] = totp.now()+ applicable_secrets[placeholder] = totp.now()value = value.replace(f'<secret>{placeholder}</secret>', applicable_secrets[placeholder])replaced_placeholders.add(placeholder)