epii-types-rpa 1.1.0 → 1.1.2
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.
- package/package.json +1 -1
- package/rpa.d.ts +6 -2
package/package.json
CHANGED
package/rpa.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
namespace rpa {
|
|
2
2
|
function args(key,dvalue);
|
|
3
3
|
function args(key);
|
|
4
|
+
function setArgs(key,value):Promise;
|
|
5
|
+
function mergeArgs(map:Object):Promise;
|
|
4
6
|
function require(path:String):Promise;
|
|
5
7
|
function success(data:any, exit:boolean);
|
|
6
8
|
function exec(script:String, params:Object = {});
|
|
@@ -31,8 +33,9 @@ namespace rpa {
|
|
|
31
33
|
function log(object:any):Promise;
|
|
32
34
|
}
|
|
33
35
|
namespace tools {
|
|
36
|
+
function uploadFile(domOrSelector:|String|Element, path:String|Array<String>):Promise
|
|
34
37
|
function log(object:any):Promise;
|
|
35
|
-
|
|
38
|
+
function getAbsolutePath(path:String):Promise;
|
|
36
39
|
function getHtml(url:String):Promise;
|
|
37
40
|
function getResponseContentOnPage(pageUrl:String, urlOrurls:String|Array<String>):Promise;
|
|
38
41
|
function waitForResponseContent(url:String):Promise;
|
|
@@ -46,6 +49,7 @@ namespace rpa {
|
|
|
46
49
|
function forEach(list:Array, callback:Function):Promise;
|
|
47
50
|
function mkdir(path:String):Promise;
|
|
48
51
|
function randomString(len:Number):Promise;
|
|
52
|
+
function waitForTrue(func:Function, interval = 500):Promise
|
|
49
53
|
|
|
50
54
|
}
|
|
51
55
|
namespace page {
|
|
@@ -54,7 +58,7 @@ namespace rpa {
|
|
|
54
58
|
function pdf(options);
|
|
55
59
|
|
|
56
60
|
function waitForNavigation(options = {});
|
|
57
|
-
function waitForSelector(selector);
|
|
61
|
+
function waitForSelector(selector,timeout=30000);
|
|
58
62
|
function waitForXPath(xpath);
|
|
59
63
|
function waitForTimeout(timeout);
|
|
60
64
|
function script(func, data = {});
|