epii-types-rpa 1.3.6 → 1.3.8

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 +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epii-types-rpa",
3
- "version": "1.3.6",
3
+ "version": "1.3.8",
4
4
  "description": "rpa-types",
5
5
  "author": "MrRen",
6
6
  "license": "ISC",
package/rpa.d.ts CHANGED
@@ -122,6 +122,7 @@ declare namespace rpa {
122
122
  function getChromeExePath():Promise<string>;
123
123
  }
124
124
  namespace page {
125
+ function setViewport(viewport:Object):Promise
125
126
  function type(selector:string, text:string,options:Object): Promise;
126
127
  function screenshot(options: Object): Promise;
127
128
  function elementScreenshot(selector:string,options: Object): Promise;
@@ -133,8 +134,8 @@ declare namespace rpa {
133
134
  function waitForXPath(xpath);
134
135
  function waitForTimeout(timeout);
135
136
  function script(func, data = {});
136
-
137
- function newIframeAndEvaluate(urlOrFunction:String | Function, func: Function,removeOnFinish:boolean = true, loadCountOrLoadCheckFunc:number | ReturnBoolFunc = 1): Promise;
137
+ function newIframeAndEvaluateOnWindow(win:Window,urlOrFunction:String | Function, func: Function,removeOnFinish:boolean = true, loadCountOrLoadCheckFunc:number | ReturnBoolFunc = 1): Promise;
138
+ function newIframeAndEvaluate(urlOrFunction:String | Function, func: Function,removeOnFinish:boolean = true, loadCountOrLoadCheckFunc:number | ReturnBoolFunc = 1,win:Window|null = null): Promise;
138
139
 
139
140
  function download(url: String, path: String): Promise;
140
141
  function closeActivated(): Promise;