testgenius-ai
Version:
🚀 TestGenius AI - The Ultimate E2E Testing Framework for Everyone | No Coding Required • AI-Powered Automation • Beautiful Reports • Zero Complexity
28 lines • 836 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InteractionTools = void 0;
class InteractionTools {
constructor() {
this.browser = null;
}
setBrowser(browser) {
this.browser = browser;
}
async clickElement(selector) {
if (!this.browser)
throw new Error('Browser not initialized');
await this.browser.$(selector).click();
}
async fillForm(selector, value) {
if (!this.browser)
throw new Error('Browser not initialized');
const el = await this.browser.$(selector);
await el.setValue(value);
}
// Placeholder methods
async init() {
console.log('InteractionTools initialized');
}
}
exports.InteractionTools = InteractionTools;
//# sourceMappingURL=InteractionTools.js.map