epii-types-rpa 1.3.4 → 1.3.6

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 +5 -2
  2. package/rpa.d.ts +7 -3
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "epii-types-rpa",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "rpa-types",
5
5
  "author": "MrRen",
6
6
  "license": "ISC",
7
7
  "types": "rpa.d.ts",
8
- "typings": "rpa.d.ts"
8
+ "typings": "rpa.d.ts",
9
+ "dependencies": {
10
+
11
+ }
9
12
  }
package/rpa.d.ts CHANGED
@@ -5,10 +5,11 @@ interface UploadFile {
5
5
  }
6
6
  interface RequestHandler {
7
7
  reg: String,
8
- type: "file" | "content" | "abort" | "redirect",
8
+ type: "file" | "content" | "abort" | "redirect" | "web-app",
9
9
  file?: String,
10
10
  content?: String,
11
- getLocation?: (url: string) => string
11
+ getLocation?: (url: string) => string,
12
+ path?:string
12
13
  }
13
14
 
14
15
  interface FormItem {
@@ -118,10 +119,13 @@ declare namespace rpa {
118
119
  function waitForSelectors(selectorOrFunction: String | Function): Promise<Array<Element>>
119
120
  function getAppDataDir(subDir:string):Promise<string>;
120
121
  function unlink(filepath:string):Promise<string>;
122
+ function getChromeExePath():Promise<string>;
121
123
  }
122
124
  namespace page {
123
-
125
+ function type(selector:string, text:string,options:Object): Promise;
124
126
  function screenshot(options: Object): Promise;
127
+ function elementScreenshot(selector:string,options: Object): Promise;
128
+
125
129
  function pdf(options): Promise;
126
130
 
127
131
  function waitForNavigation(options = {});