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: improved amazon captcha solver solution check
BroskyBrowser3db45ebd2035
diff --git a/examples/custom-functions/solve_amazon_captcha.py b/examples/custom-functions/solve_amazon_captcha.pyindex 2f69e6f12..ccb35c3c8 100644--- a/examples/custom-functions/solve_amazon_captcha.py+++ b/examples/custom-functions/solve_amazon_captcha.py@@ -43,7 +43,7 @@ async def solve_amazon_captcha(browser_session: BrowserSession):captcha = AmazonCaptcha.fromlink(link)solution = captcha.solve()- if solution == 'Not solved':+ if not solution or solution == 'Not solved':raise ValueError("Captcha could not be solved")await page.locator('#captchacharacters').fill(solution)