epii-types-rpa 1.5.0 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/rpa.d.ts +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epii-types-rpa",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "rpa-types",
5
5
  "author": "MrRen",
6
6
  "license": "ISC",
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
 
@@ -170,7 +172,7 @@ declare namespace rpa {
170
172
  function waitOpenedPageAndEvaluate(invokeFun: Function, func: Function, data: Object = {}): Promise;
171
173
  function waitOpenedPageAndExec(invokeFun: Function, script: String, params: Object = {}): Promise;
172
174
  function waitOpenedPageAndGetHandler(invokeFun: Function):Promise<PageHander>;
173
-
175
+
174
176
  function getNextWindowOpenUrl(beforFunc: Function, cancel: boolean): Promise;
175
177
  function getNextWindowOpenUrl(beforFunc: Function): Promise;
176
178
  function newIncognitoPageAndEvaluate(url: String, func: Function, data: Object = {}): Promise;