mirror of
https://github.com/xodio/xod.git
synced 2026-03-16 13:46:56 +01:00
13 lines
305 B
JavaScript
13 lines
305 B
JavaScript
export default class BasePageObject {
|
|
constructor(page, elementHandle) {
|
|
// mostly for page.evaluate
|
|
this.page = page;
|
|
|
|
if (elementHandle == null) {
|
|
throw new Error('trying to create a page object with a null root element handle');
|
|
}
|
|
|
|
this.elementHandle = elementHandle;
|
|
}
|
|
}
|