UNPKG

@scraping.house/commons

Version:
29 lines 1.13 kB
import { Page } from 'playwright-core'; import AbstractSubModule from './abstract-sub-module'; import UserProfileSelectors from '../selectors/user-profile-selectors'; import URLFactory from '../utils/url-factory'; export default abstract class AbstractUserProfileModule extends AbstractSubModule { private readonly id; protected readonly urlFactory: URLFactory; private static logger; private readonly selectors; protected constructor(selectors: UserProfileSelectors, baseURL: string, id: string, page: Page); init(): Promise<void>; /** * Returns the fullname of the user * @returns The full name of the user */ fullName(): Promise<string>; /** * Returns the bio of the current user * @returns The bio of the current user */ bio(): Promise<string>; /** * Returns the text content of the given selector * @param selector The selector the get text content of * @returns The text cotnent of the given selector */ protected getTextualContent(selector: string): Promise<string>; } //# sourceMappingURL=abstract-user-profile-module.d.ts.map