Pulled ALL skills from 15 source repositories: - anthropics/skills: 16 (docs, design, MCP, testing) - obra/superpowers: 14 (TDD, debugging, agents, planning) - coreyhaines31/marketingskills: 25 (marketing, CRO, SEO, growth) - better-auth/skills: 5 (auth patterns) - vercel-labs/agent-skills: 5 (React, design, Vercel) - antfu/skills: 16 (Vue, Vite, Vitest, pnpm, Turborepo) - Plus 13 individual skills from various repos Mosaic Stack is not limited to coding — the Orchestrator and subagents serve coding, business, design, marketing, writing, logistics, analysis, and more. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
33 lines
953 B
Python
33 lines
953 B
Python
from playwright.sync_api import sync_playwright
|
|
import os
|
|
|
|
# Example: Automating interaction with static HTML files using file:// URLs
|
|
|
|
html_file_path = os.path.abspath('path/to/your/file.html')
|
|
file_url = f'file://{html_file_path}'
|
|
|
|
with sync_playwright() as p:
|
|
browser = p.chromium.launch(headless=True)
|
|
page = browser.new_page(viewport={'width': 1920, 'height': 1080})
|
|
|
|
# Navigate to local HTML file
|
|
page.goto(file_url)
|
|
|
|
# Take screenshot
|
|
page.screenshot(path='/mnt/user-data/outputs/static_page.png', full_page=True)
|
|
|
|
# Interact with elements
|
|
page.click('text=Click Me')
|
|
page.fill('#name', 'John Doe')
|
|
page.fill('#email', 'john@example.com')
|
|
|
|
# Submit form
|
|
page.click('button[type="submit"]')
|
|
page.wait_for_timeout(500)
|
|
|
|
# Take final screenshot
|
|
page.screenshot(path='/mnt/user-data/outputs/after_submit.png', full_page=True)
|
|
|
|
browser.close()
|
|
|
|
print("Static HTML automation completed!") |