import PuppeteerPage from 'pagewalker/lib/browser/puppeteer/puppeteer_page.js'PuppeteerPage
Extends:
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public get |
FinderClass: Finder: * |
|
| public get |
nativeObject: object: * |
|
| public get |
socket: BrowserSocket: * |
|
| public get |
|
|
| Private Members | ||
| private |
_window: * |
|
Method Summary
| Public Methods | ||
| public |
executeJavaScript(code: *, args: ...*): Promise<string|number|boolean> |
|
| public |
|
|
| public |
loadURL(url: *, options: {}): Promise<BrowserPage> |
|
| public |
on(eventName: *, callback: *) |
|
| public |
once(eventName: *, callback: *) |
|
| public |
show developer tool, not supported yet. |
|
| public |
|
|
| public |
removeAllListeners(eventName: *) |
|
| public |
takeScreenshot(filename: *): * |
|
| public |
waitForAlert(action: *, message: *): Promise<string> |
|
| public |
waitForConfirm(action: *, message: *, isClickOK: boolean): Promise<string> |
|
| public |
waitForDownload(action: *, options: *): Promise<object> |
|
| Private Methods | ||
| private |
_addEventListener(eventName: *, callback: *, once: boolean) |
|
| private |
_setDownloadPath(downloadPath: *): * |
|
| private |
_waitForDialog(dialogType: *, action: *, message: *, isClickOK: boolean): Promise<string> |
|
Public Constructors
public constructor() source
Public Methods
public executeJavaScript(code: *, args: ...*): Promise<string|number|boolean> source
Params:
| Name | Type | Attribute | Description |
| code | * | ||
| args | ...* |
public loadURL(url: *, options: {}): Promise<BrowserPage> source
Params:
| Name | Type | Attribute | Description |
| url | * | ||
| options | {} |
|
public on(eventName: *, callback: *) source
Params:
| Name | Type | Attribute | Description |
| eventName | * | ||
| callback | * |
public once(eventName: *, callback: *) source
Params:
| Name | Type | Attribute | Description |
| eventName | * | ||
| callback | * |
public removeAllListeners(eventName: *) source
Params:
| Name | Type | Attribute | Description |
| eventName | * |
public takeScreenshot(filename: *): * source
Params:
| Name | Type | Attribute | Description |
| filename | * |
Return:
| * |
public waitForAlert(action: *, message: *): Promise<string> source
Params:
| Name | Type | Attribute | Description |
| action | * | ||
| message | * |
|
public waitForConfirm(action: *, message: *, isClickOK: boolean): Promise<string> source
Params:
| Name | Type | Attribute | Description |
| action | * | ||
| message | * |
|
|
| isClickOK | boolean |
|
public waitForDownload(action: *, options: *): Promise<object> source
Params:
| Name | Type | Attribute | Description |
| action | * | ||
| options | * |
Private Methods
private _addEventListener(eventName: *, callback: *, once: boolean) source
Params:
| Name | Type | Attribute | Description |
| eventName | * | ||
| callback | * | ||
| once | boolean |
|
private _setDownloadPath(downloadPath: *): * source
Params:
| Name | Type | Attribute | Description |
| downloadPath | * |
Return:
| * |
