:,AI
,,。, CDN ,。,,。
:
- **** — ,
- **** — ,
- **** — 、、
**** —— 、、。
Browser Harness ?
Browser Harness ****, LLM()。
- 11,251+ Stars on GitHub
- 1,019+ Forks
- Python
- Playwright Selenium
- browser-use
:“Self-healing harness that enables LLMs to complete any task.”
1. (Self-Healing)
:
1# ,
2button = driver.find_element(By.CSS_SELECTOR, "#submit-btn")
3button.click()
Browser Harness:
1# LLM ,
2# id ,
3result = harness.execute("")
4# ,LLM
****:
- → → LLM → →
2. (Semantic Understanding)
Browser Harness CSS , LLM ****:
1# LLM ,
2harness.execute(",,")
3
4# LLM :
5# 1.
6# 2. "wireless headphones"
7# 3.
8# 4. "Customer Reviews"
9# 5.
10# 6. "Add to Cart"
3.
1from browser_harness import Harness
2
3harness = Harness(model="gpt-4o")
4
5#
6task = """
7,
8:
9-
10- 1000
11-
12-
13"""
14
15result = harness.execute(task)
16# LLM :
17# 1. /
18# 2.
19# 3. →
20# 4.
21# 5.
22# 6.
23# 7. /
24# 8.
25# 9.
26# 10.
4. (Visual Perception)
Browser Harness LLM ,"":
1#
2screenshot = harness.screenshot()
3analysis = harness.llm.analyze_image(screenshot,
4 "?")
5
6# LLM :
7# ":
8# - (type=text)
9# - (type=password)
10# -
11# - "
5.
| Browser Harness | Playwright | Selenium | Scrapy | |
|---|---|---|---|---|
| **** | ✅ | ❌ | ❌ | ❌ |
| **** | ✅ LLM | ❌ | ❌ | ❌ XPath |
| **** | ✅ | ⚠️ | ⚠️ | ⚠️ |
| **** | ✅ LLM | ❌ | ❌ | ❌ |
| **** | ✅ | ⚠️ | ⚠️ | ⚠️ |
| **** | () |
1Browser Harness
2├── LLM Core (GPT-4o / Claude / Local LLM)
3├── Browser Controller (Playwright / Selenium)
4├── Self-Healing Engine
5│ ├── Error Detection
6│ ├── Screenshot Analysis
7│ ├── Strategy Regeneration
8│ └── Retry Logic
9├── Task Planner
10│ ├── Goal Decomposition
11│ ├── Step Sequencing
12│ └── Dependency Resolution
13└── Safety Guardrails
14 ├── URL Whitelist
15 ├── Action Limits
16 └── Human-in-the-Loop
1pip install browser-harness
2
3#
4playwright install
1from browser_harness import Harness
2
3#
4harness = Harness(
5 model="gpt-4o", # "claude-3-5-sonnet"
6 browser="chromium",
7 headless=False #
8)
9
10#
11result = harness.execute(" Google 'Python tutorial'")
12
13#
14task = """
151. github.com
162. 'browser-use/browser-harness'
173. Star
184. star
19"""
20result = harness.execute(task)
21print(result) # " Stars: 11251"
1from browser_harness import Harness, Config
2
3config = Config(
4 max_retries=3, #
5 retry_delay=2, # ()
6 screenshot_on_error=True, #
7 human_in_the_loop=True, #
8 url_whitelist=[ # URL
9 "*.github.com",
10 "*.google.com"
11 ]
12)
13
14harness = Harness(model="gpt-4o", config=config)
1:
1# LLM
2test_cases = [
3 ",",
4 ",",
5 ","
6]
7
8for test in test_cases:
9 result = harness.execute(test)
10 assert result.success, f": {test}"
2:
1# ,
2data = harness.execute("""
3 example.com/products,
4:
5-
6-
7-
8-
9 JSON
10""")
3:
1#
2harness.execute("""
31.
42.
53. PDF
64.
75.
8""")
4:
1#
2harness.execute("""
3 amazon.com,,
4 10 ,
5
6""")
| Stars | |||
|---|---|---|---|
| Browser Harness | 11K+ | 、LLM | |
| Playwright | 66K+ | 、 | |
| Selenium | 30K+ | ||
| Scrapy | 52K+ | ||
| Crawl4AI | 8K+ | AI |
- **** — LLM API ()
- **** — ()
- **** —
- **** —
Browser Harness **** —— “”""。
- LLM
,Browser Harness 。
GitHub: browser-use/browser-harness
Stars: 11,251+ | Language: Python | License: Open Source

Have questions or ideas? Feel free to leave a comment below. Sign in with GitHub to join the discussion.