epii-types-rpa 1.5.2 → 1.5.4

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.2",
3
+ "version": "1.5.4",
4
4
  "description": "rpa-types",
5
5
  "author": "MrRen",
6
6
  "license": "ISC",
package/rpa.d.ts CHANGED
@@ -139,6 +139,7 @@ declare namespace rpa {
139
139
  function getAppDataDir(subDir: string): Promise<string>;
140
140
  function unlink(filepath: string): Promise<string>;
141
141
  function getChromeExePath(): Promise<string>;
142
+ function getBase64ImageFromImgNode(imgNode:Element):Promise<string>;
142
143
  }
143
144
  namespace page {
144
145
  function setViewport(viewport: Object): Promise
@@ -167,7 +168,8 @@ declare namespace rpa {
167
168
 
168
169
  }
169
170
  namespace browser {
170
- function newPageAndGetHandler(): Promise<PageHander>;
171
+ function newPageAndGetHandler(url?:string): Promise<PageHander>;
172
+ function newIncognitoPageAndGetHandler(url?:string): Promise<PageHander>;
171
173
  function getPageHandler(pageId: string): PageHander;
172
174
 
173
175
  function evaluateInPage(ageId: String, func: Function, data?: Object): Promise;
@@ -177,7 +179,7 @@ declare namespace rpa {
177
179
  function newPageAndEvaluate(url: String, func: Function, data: Object = {}): Promise;
178
180
  function waitOpenedPageAndEvaluate(invokeFun: Function, func: Function, data: Object = {}): Promise;
179
181
  function waitOpenedPageAndExec(invokeFun: Function, script: String, params: Object = {}): Promise;
180
- function waitOpenedPageAndGetHandler(invokeFun: Function):Promise<PageHander>;
182
+ function waitOpenedPageAndGetHandler(invokeFun: Function, waitFor?:String):Promise<PageHander>;
181
183
 
182
184
  function getNextWindowOpenUrl(beforFunc: Function, cancel: boolean): Promise;
183
185
  function getNextWindowOpenUrl(beforFunc: Function): Promise;