"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormJsPage = void 0;
class FormJsPage {
    page;
    aiFormGeneratorButton;
    formRequestInput;
    generateFormButton;
    constructor(page) {
        this.page = page;
        this.aiFormGeneratorButton = page.getByRole('button', {
            name: 'AI Form Generator',
        });
        this.formRequestInput = page.getByPlaceholder('A form for an american standard loan request');
        this.generateFormButton = page.getByRole('button', { name: 'Generate form' });
    }
    async clickAIFormGeneratorButton() {
        await this.aiFormGeneratorButton.click();
    }
    async clickFormRequestInput() {
        await this.formRequestInput.click();
    }
    async fillFormRequestInput(formRequest) {
        await this.formRequestInput.fill(formRequest);
    }
    async clickGenerateFormButton() {
        await this.generateFormButton.click();
    }
}
exports.FormJsPage = FormJsPage;
