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