Playwright start

This commit is contained in:
2026-05-30 10:04:12 -04:00
parent 73f29cea08
commit 1f7a0819fc
108 changed files with 37445 additions and 62 deletions
+28
View File
@@ -0,0 +1,28 @@
const BasePage = require('./base.page');
class DatabaseSinglePage extends BasePage {
get url() { return 'database'; }
async getEntityName() {
return await this.website.find('entityName').innerText();
}
async getEntityHealth() {
return await this.website.find('entityHealth').innerText();
}
async getInvalidSearch() {
return await this.website.find('invalidSearch').innerText();
}
async getValidSearch() {
return await this.website.find('validSearch').innerText();
}
async goto(searchText) {
await this.website.goto(`${this.url}/${searchText}`);
return this;
}
}
module.exports = DatabaseSinglePage;