waytest-ui
v1.1.3
Published
π¬ Record browser interactions and generate tests automatically - UI Recorder with smart code generation
Maintainers
Readme
Way.test - UI Recorder & Testing Framework
π¬ Record browser interactions and generate tests automatically
β¨ What is Way.test?
Way.test is a UI Recorder that lets you create browser tests by simply interacting with your web application. No more writing selectors manually - just click, type, and interact naturally while the recorder generates production-ready test code.
π― Key Features
- π¬ UI Recorder - Record real browser interactions automatically
- β‘ Instant Test Generation - Get clean, readable test code immediately
- π¨ Professional UI - Minimal, non-intrusive recording toolbar
- π§ Smart Code Generation - Optimized selectors and consolidated actions
- π Real-time Preview - See generated code as you interact
π Quick Start
1. Install
npm install --save-dev waytest-uiThat's it! Browser automation is included automatically.
2. Start Recording
# Record interactions on any website
npx waytest record https://your-app.com
# Record on localhost during development
npx waytest record http://localhost:30003. Interact Naturally
A minimal toolbar appears in your browser:
β ποΈ T π ZZZ {} [0]- β Recording indicator
- ποΈ Assert element visibility
- T Assert text content
- π Wait for elements
- ZZZ Add delays
- {} View generated code
- [0] Action counter
4. Generate Test Code
Click the {} button to see your generated test:
const { way } = require('waytest-ui');
way.test('Login flow', async () => {
// π Navigate to login page
await way.browser.goto('https://your-app.com/login');
// π Click username field
await way.browser.click('#username');
// π Type username
await way.browser.type('#username', '[email protected]');
// π Click password field
await way.browser.click('#password');
// π Type password
await way.browser.type('#password', 'password123');
// π Click login button
await way.browser.click('#login-button');
// β
Assert welcome message
const welcomeText = await way.browser.getText('.welcome');
way.check(welcomeText).includes('Welcome');
});5. Run Your Tests
# Run with visible browser (for debugging)
npx waytest --browser login.test.js
# Run in headless mode (for CI/CD)
npx waytest --browser --headless login.test.jsπ‘ Perfect For
- E-commerce flows - Shopping cart, checkout, payments
- Authentication - Login, signup, password reset
- Form testing - Contact forms, surveys, validation
- User journeys - Multi-step workflows
- Regression testing - Ensure features keep working
π― Why Choose Way.test?
β vs Manual Test Writing
- 10x Faster - No more writing selectors manually
- Zero Errors - Perfect selectors every time
- Real User Flows - Tests exactly what users do
β vs Other Recorders
- Cleaner Code - Optimized, readable test generation
- Professional UI - Minimal, non-intrusive interface
- Smart Features - Action consolidation and selector optimization
β Perfect for Teams
- No Learning Curve - Anyone can record tests
- Consistent Quality - Same high-quality tests every time
- Fast Onboarding - New team members productive immediately
π Documentation
For complete documentation, examples, and advanced features, visit: π Full Documentation
π€ Contributing
Way.test is open source and welcomes contributions!
π License
MIT License - see LICENSE file for details.
π¬ Start recording your first test in under 30 seconds:
npm install --save-dev waytest-ui
npx waytest record https://your-app.comWay.test - The fastest way to create reliable browser tests.
