epii-types-rpa 1.3.4 → 1.3.5

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 +6 -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.5",
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 {
@@ -120,8 +121,10 @@ declare namespace rpa {
120
121
  function unlink(filepath:string):Promise<string>;
121
122
  }
122
123
  namespace page {
123
-
124
+ function type(selector:string, text:string,options:Object): Promise;
124
125
  function screenshot(options: Object): Promise;
126
+ function elementScreenshot(selector:string,options: Object): Promise;
127
+
125
128
  function pdf(options): Promise;
126
129
 
127
130
  function waitForNavigation(options = {});