IDCAS web automation framework with TypeScript and Playwright
npm install ifa-framework
š AI-powered web automation framework with TypeScript and Playwright
\\bash
npm install IFA-framework
\\\
\\bash
npx fau init
\\\
fau.config.ts\ - Framework configuration
tests/\ - Test files directory
fau-results/\ - Reports and screenshots
\\typescript
// tests/example.fau.ts
import { FauPage } from 'fau-framework';
export default async function loginTest(page: FauPage) {
await page.goto('https://example.com/login');
// Smart locators - find elements by description
await page.smartFill('username', 'testuser');
await page.smartFill('password', 'password123');
await page.smartClick('login button');
// Take evidence screenshot
await page.screenshot({ path: 'fau-results/screenshots/login-success.png' });
}
\\\
\\bash
Run all tests
npm test
Run in headless mode
npm run test:headless
Debug a specific test
npx fau debug tests/example.fau.ts
\\\