12 lines
224 B
TypeScript
12 lines
224 B
TypeScript
|
import { Page } from 'puppeteer';
|
||
|
|
||
|
export abstract class BaseElement {
|
||
|
protected page: Page;
|
||
|
protected selector: string;
|
||
|
|
||
|
constructor( page: Page, selector: string ) {
|
||
|
this.page = page;
|
||
|
this.selector = selector;
|
||
|
}
|
||
|
}
|