mirror of
https://github.com/xodio/xod.git
synced 2026-03-05 16:34:04 +01:00
15 lines
321 B
JavaScript
15 lines
321 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;
|
|
}
|
|
}
|