epii-types-rpa 1.5.0 → 1.5.2

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 +10 -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.2",
4
4
  "description": "rpa-types",
5
5
  "author": "MrRen",
6
6
  "license": "ISC",
package/rpa.d.ts CHANGED
@@ -34,11 +34,19 @@ 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;
44
+ mouse:{
45
+ down:(options?:Object)=> Promise<void>;
46
+ move:(x:number,y:number,options?:Object)=> Promise<void>;
47
+ up:(options?:Object)=> Promise<void>;
48
+ click:(x:number,y:number,options?:Object)=> Promise<void>;
49
+ }
42
50
  };
43
51
 
44
52
 
@@ -170,7 +178,7 @@ declare namespace rpa {
170
178
  function waitOpenedPageAndEvaluate(invokeFun: Function, func: Function, data: Object = {}): Promise;
171
179
  function waitOpenedPageAndExec(invokeFun: Function, script: String, params: Object = {}): Promise;
172
180
  function waitOpenedPageAndGetHandler(invokeFun: Function):Promise<PageHander>;
173
-
181
+
174
182
  function getNextWindowOpenUrl(beforFunc: Function, cancel: boolean): Promise;
175
183
  function getNextWindowOpenUrl(beforFunc: Function): Promise;
176
184
  function newIncognitoPageAndEvaluate(url: String, func: Function, data: Object = {}): Promise;