Custom Skills (ourdigital-custom-skills/): - 00-ourdigital-visual-storytelling: Blog featured image prompt generator - 01-ourdigital-research-publisher: Research-to-publication workflow - 02-notion-organizer: Notion workspace management - 03-research-to-presentation: Notion research to PPT/Figma - 04-seo-gateway-strategist: SEO gateway page strategy planning - 05-gateway-page-content-builder: Gateway page content generation - 20-jamie-brand-editor: Jamie Clinic branded content GENERATION - 21-jamie-brand-guardian: Jamie Clinic content REVIEW & evaluation Refinements applied: - All skills converted to SKILL.md format with YAML frontmatter - Added version fields to all skills - Flattened nested folder structures - Removed packaging artifacts (.zip, .skill files) - Reorganized file structures (scripts/, references/, etc.) - Differentiated Jamie skills with clear roles 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude Opus 4.5 <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!") |