import Page from './page' ; export class CategoriesPage extends Page { private findCategory ( category ) { return $ ( `*=${ category }` ) ; } public async openCategory ( category ) { return ( await this . findCategory ( category ) ) . click ( ) ; } } export default new CategoriesPage ( ) ;