Loading...
Loading...
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
npx skill4agent add github/awesome-copilot webapp-testing// Navigate to a page and verify title
await page.goto('http://localhost:3000');
const title = await page.title();
console.log('Page title:', title);// Fill out and submit a form
await page.fill('#username', 'testuser');
await page.fill('#password', 'password123');
await page.click('button[type="submit"]');
await page.waitForURL('**/dashboard');// Capture a screenshot for debugging
await page.screenshot({ path: 'debug.png', fullPage: true });await page.waitForSelector('#element-id', { state: 'visible' });const exists = await page.locator('#element-id').count() > 0;page.on('console', msg => console.log('Browser log:', msg.text()));try {
await page.click('#button');
} catch (error) {
await page.screenshot({ path: 'error.png' });
throw error;
}