Files
stef-openclaw-skills/skills/web-automation/scripts/test-minimal.ts
Luke 658562ae35 Add web-automation skill
- Browse and scrape web pages using Playwright with Camoufox anti-detection browser
- Supports automated web workflows, authenticated sessions, and bot protection bypass
- Includes scripts for browse, scrape, auth, and local app scanning
- Updated README with skill documentation and system library requirements
2026-02-11 18:46:59 +00:00

23 lines
527 B
TypeScript

import { Camoufox } from 'camoufox-js';
async function test() {
console.log('Launching Camoufox with minimal config...');
const browser = await Camoufox({
headless: true,
});
console.log('Browser launched');
const page = await browser.newPage();
console.log('Page created');
await page.goto('https://example.com', { timeout: 30000 });
console.log('Navigated to:', page.url());
console.log('Title:', await page.title());
await browser.close();
console.log('Done');
}
test().catch(console.error);