epii-types-rpa 1.5.1 → 1.5.3

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 +8 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epii-types-rpa",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "description": "rpa-types",
5
5
  "author": "MrRen",
6
6
  "license": "ISC",
package/rpa.d.ts CHANGED
@@ -41,6 +41,12 @@ type PageHander = {
41
41
  goto(url: string): Promise;
42
42
  setContent(html:string):Promise;
43
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
+ }
44
50
  };
45
51
 
46
52
 
@@ -161,7 +167,8 @@ declare namespace rpa {
161
167
 
162
168
  }
163
169
  namespace browser {
164
- function newPageAndGetHandler(): Promise<PageHander>;
170
+ function newPageAndGetHandler(url?:string): Promise<PageHander>;
171
+ function newIncognitoPageAndGetHandler(url?:string): Promise<PageHander>;
165
172
  function getPageHandler(pageId: string): PageHander;
166
173
 
167
174
  function evaluateInPage(ageId: String, func: Function, data?: Object): Promise;