estructura_automation
Version:
Paquete de estructura de automation
28 lines (25 loc) • 1.21 kB
text/typescript
import { Locator, Page } from '@playwright/test';
export default class Fields {
readonly emailInput: Locator;
readonly documentType: Locator;
readonly documentNumber: Locator;
readonly firstNameInput: Locator;
readonly lastNameInput: Locator;
readonly companyNameInput: Locator;
readonly phoneInput: Locator;
readonly passwordInput: Locator;
readonly descriptionInput: Locator;
readonly statusInput: Locator;
constructor(public page: Page) {
this.emailInput = page.getByRole('textbox', { name: 'Correo electrónico' });
this.documentType = page.getByRole('combobox',{name:"seleccione el tipo"});
this.documentNumber = page.getByRole('textbox', { name: 'RIF/CI' });
this.firstNameInput = page.getByRole('textbox', { name: 'Nombres' });
this.lastNameInput = page.getByRole('textbox', { name: 'Apellidos' });
this.companyNameInput = page.getByRole('textbox', { name: 'Razón social' });
this.phoneInput = page.getByRole('textbox', { name: 'Teléfono' });
this.passwordInput = page.getByRole('textbox', { name: 'Contraseña' });
this.descriptionInput = page.getByRole('textbox', { name: 'Descripción' });
this.statusInput = page.getByLabel('Estatus');
}
}