import { Page } from '@playwright/test'; export class ChildEditPage { readonly page: Page; constructor(page: Page) { this.page = page; } async fillName(name: string) { await this.page.getByRole('textbox', { name: 'Name' }).fill(name); } async fillAge(age: string) { await this.page.getByLabel('Age').fill(age); } async selectImage(imageAlt: string) { await this.page.getByRole('img', { name: imageAlt }).click(); } async submit() { await this.page.getByRole('button', { name: 'Save' }).click(); } }