Add web-automation skill variants and inline prerequisite checks
This commit is contained in:
22
skills/web-automation/claude-code/scripts/test-minimal.ts
Normal file
22
skills/web-automation/claude-code/scripts/test-minimal.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user