epii-types-rpa 1.5.3 → 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 +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epii-types-rpa",
3
- "version": "1.5.3",
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
@@ -178,7 +179,7 @@ declare namespace rpa {
178
179
  function newPageAndEvaluate(url: String, func: Function, data: Object = {}): Promise;
179
180
  function waitOpenedPageAndEvaluate(invokeFun: Function, func: Function, data: Object = {}): Promise;
180
181
  function waitOpenedPageAndExec(invokeFun: Function, script: String, params: Object = {}): Promise;
181
- function waitOpenedPageAndGetHandler(invokeFun: Function):Promise<PageHander>;
182
+ function waitOpenedPageAndGetHandler(invokeFun: Function, waitFor?:String):Promise<PageHander>;
182
183
 
183
184
  function getNextWindowOpenUrl(beforFunc: Function, cancel: boolean): Promise;
184
185
  function getNextWindowOpenUrl(beforFunc: Function): Promise;