18 lines
No EOL
528 B
TypeScript
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();
|
|
}
|
|
} |