29 lines
652 B
JavaScript
29 lines
652 B
JavaScript
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;
|