epii-types-rpa 1.3.9 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rpa.d.ts +4 -1
package/package.json
CHANGED
package/rpa.d.ts
CHANGED
|
@@ -34,11 +34,13 @@ type PageHander = {
|
|
|
34
34
|
evaluateFunction: (func: Function, data?: Object) => Promise<any>;
|
|
35
35
|
waitForSelector: (selector: string) => Promise;
|
|
36
36
|
waitForTrue: (func: Function, data?: Object) => Promise;
|
|
37
|
-
waitForOnceLoad: () => Promise;
|
|
37
|
+
waitForOnceLoad: (invokeFun:Function) => Promise;
|
|
38
|
+
waitForClosed: (invokeFun:Function) => Promise;
|
|
38
39
|
execScript: (script: String, params?: Object) => Promise,
|
|
39
40
|
getPageId: () => string;
|
|
40
41
|
goto(url: string): Promise;
|
|
41
42
|
setContent(html:string):Promise;
|
|
43
|
+
close():Promise;
|
|
42
44
|
};
|
|
43
45
|
|
|
44
46
|
|
|
@@ -169,6 +171,7 @@ declare namespace rpa {
|
|
|
169
171
|
function newPageAndEvaluate(url: String, func: Function, data: Object = {}): Promise;
|
|
170
172
|
function waitOpenedPageAndEvaluate(invokeFun: Function, func: Function, data: Object = {}): Promise;
|
|
171
173
|
function waitOpenedPageAndExec(invokeFun: Function, script: String, params: Object = {}): Promise;
|
|
174
|
+
function waitOpenedPageAndGetHandler(invokeFun: Function):Promise<PageHander>;
|
|
172
175
|
|
|
173
176
|
function getNextWindowOpenUrl(beforFunc: Function, cancel: boolean): Promise;
|
|
174
177
|
function getNextWindowOpenUrl(beforFunc: Function): Promise;
|