Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

add rebrowser and creepjs to stealth tests

Nick Sweetingc6525d57e352
diff --git a/examples/browser/stealth.py b/examples/browser/stealth.py
index b69601636..aed94c53e 100644
--- a/examples/browser/stealth.py
+++ b/examples/browser/stealth.py
@@ -23,6 +23,16 @@ browser = Browser(
async def main():
+ agent = Agent(
+ task="""
+ Go to https://bot-detector.rebrowser.net/ and verify that all the bot checks are passed.
+ """,
+ llm=llm,
+ browser=browser,
+ )
+ await agent.run()
+ input('Press Enter to continue to the next test...')
+
agent = Agent(
task="""
Go to https://www.webflow.com/ and verify that the page is not blocked by a bot check.
@@ -42,6 +52,17 @@ async def main():
)
await agent.run()
+ agent = Agent(
+ task="""
+ Go to https://abrahamjuliot.github.io/creepjs/ and verify that the detection score is >50%.
+ """,
+ llm=llm,
+ browser=browser,
+ )
+ await agent.run()
+
+ input('Press Enter to close the browser...')
+
agent = Agent(
task="""
Go to https://nowsecure.nl/ check the "I'm not a robot" checkbox.