20 lines
474 B
JavaScript
20 lines
474 B
JavaScript
class NavigationBar {
|
|
constructor(website) {
|
|
this.website = website;
|
|
}
|
|
|
|
get searchButton() { return this.website.findScreenSpecific('searchButton'); }
|
|
|
|
async clickHomeLink() {
|
|
await this.website.clickElement(this.website.locator('a:has-text("IGP Fan Reference")'));
|
|
return this;
|
|
}
|
|
|
|
async clickSearchButton() {
|
|
await this.website.clickElement(this.searchButton);
|
|
return this.website.websiteSearchDialog;
|
|
}
|
|
}
|
|
|
|
module.exports = NavigationBar;
|