ElectronPage
Extends:
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public get |
FinderClass: * |
|
| public get |
nativeObject: * |
|
| public get |
socket: * |
|
| public get |
window: * |
|
| Private Members | ||
| private |
_socket: * |
|
| private |
_window: * |
|
Method Summary
| Public Methods | ||
| public |
executeJavaScript(code: *, args: ...*): * |
|
| public |
|
|
| public |
loadURL(url: *, options: {}): * |
|
| public |
on(eventName: *, callback: *) |
|
| public |
once(eventName: *, callback: *) |
|
| public |
openDevTools(): * |
|
| public |
reload(): Promise<object |
|
| public |
removeAllListeners(eventName: *) |
|
| public |
takeScreenshot(filename: *): * |
|
| public |
waitForAlert(action: *, message: *): * |
|
| public |
waitForConfirm(action: *, message: *, isClickOK: boolean): * |
|
| public |
waitForDownload(action: *, options: *): * |
|
| Private Methods | ||
| private |
_addEventListener(eventName: *, callback: *, once: boolean) |
|
| private |
_waitForDialog(dialogType: *, action: *, message: *, isClickOK: boolean): * |
|
Public Constructors
public constructor() source
Public Members
public get FinderClass: * source
public get nativeObject: * source
public get socket: * source
public get window: * source
Private Members
private _socket: * source
private _window: * source
Public Methods
public executeJavaScript(code: *, args: ...*): * source
Params:
| Name | Type | Attribute | Description |
| code | * | ||
| args | ...* |
Return:
| * |
public loadURL(url: *, options: {}): * source
Params:
| Name | Type | Attribute | Description |
| url | * | ||
| options | {} |
|
Return:
| * |
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: *): * source
Params:
| Name | Type | Attribute | Description |
| action | * | ||
| message | * |
|
Return:
| * |
public waitForConfirm(action: *, message: *, isClickOK: boolean): * source
Params:
| Name | Type | Attribute | Description |
| action | * | ||
| message | * |
|
|
| isClickOK | boolean |
|
Return:
| * |
public waitForDownload(action: *, options: *): * source
Params:
| Name | Type | Attribute | Description |
| action | * | ||
| options | * |
Return:
| * |
