DigitalConsumer.ISS/playwright-tests/pages/MoldingQuestionsPage.ts
2025-02-24 15:00:29 -05:00

18 lines
No EOL
528 B
TypeScript

import { expect, type Locator, type Page } from '@playwright/test';
import { BasePage } from './BasePage';
export class MoldingQuestionsPage extends BasePage {
readonly page: Page;
url = process.env['BASE_URL']! + '/?issPage=part-questions';
readonly yesButton: Locator;
constructor(page: Page) {
super(page);
this.page = page;
this.yesButton = page.locator('label').filter({ hasText: 'Yes' }).locator('div');
}
async answerYes() {
await this.yesButton.click();
}
}