@rnw-community/wdio 0.26.4 → 0.26.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.
- package/dist/command/mobile/open-deep-link.command.d.ts.map +1 -1
- package/dist/command/mobile/open-deep-link.command.js +20 -14
- package/dist/command/mobile/open-deep-link.command.js.map +1 -1
- package/dist/command/slow-input.command.d.ts.map +1 -1
- package/dist/command/slow-input.command.js +28 -21
- package/dist/command/slow-input.command.js.map +1 -1
- package/dist/component/component/component.d.ts +11 -9
- package/dist/component/component/component.d.ts.map +1 -1
- package/dist/component/component/component.js +60 -61
- package/dist/component/component/component.js.map +1 -1
- package/dist/component/create-component/create-component.d.ts +3 -3
- package/dist/component/create-component/create-component.d.ts.map +1 -1
- package/dist/component/create-rooted-component/create-rooted-component.d.ts +3 -3
- package/dist/component/create-rooted-component/create-rooted-component.d.ts.map +1 -1
- package/dist/component/create-rooted-component/create-rooted-component.js.map +1 -1
- package/dist/component/get-component/get-component.d.ts +3 -3
- package/dist/component/get-component/get-component.d.ts.map +1 -1
- package/dist/component/get-component/get-component.js +2 -1
- package/dist/component/get-component/get-component.js.map +1 -1
- package/dist/component/get-rooted-component/get-rooted-component.d.ts +3 -3
- package/dist/component/get-rooted-component/get-rooted-component.d.ts.map +1 -1
- package/dist/component/get-rooted-component/get-rooted-component.js +4 -6
- package/dist/component/get-rooted-component/get-rooted-component.js.map +1 -1
- package/dist/component/index.d.ts +1 -0
- package/dist/component/index.d.ts.map +1 -1
- package/dist/component/index.js +15 -0
- package/dist/component/index.js.map +1 -1
- package/dist/component/rooted-component/rooted-component.d.ts +2 -2
- package/dist/component/rooted-component/rooted-component.d.ts.map +1 -1
- package/dist/component/rooted-component/rooted-component.js +9 -4
- package/dist/component/rooted-component/rooted-component.js.map +1 -1
- package/dist/component/type/component-with-selectors.type.d.ts +7 -0
- package/dist/component/type/component-with-selectors.type.d.ts.map +1 -0
- package/dist/{type → component/type}/component-with-selectors.type.js +0 -0
- package/dist/component/type/component-with-selectors.type.js.map +1 -0
- package/dist/component/type/index.d.ts +6 -0
- package/dist/component/type/index.d.ts.map +1 -0
- package/dist/component/type/index.js +3 -0
- package/dist/component/type/index.js.map +1 -0
- package/dist/component/type/rooted-component-with-selectors.type.d.ts +7 -0
- package/dist/component/type/rooted-component-with-selectors.type.d.ts.map +1 -0
- package/dist/component/type/rooted-component-with-selectors.type.js +3 -0
- package/dist/component/type/rooted-component-with-selectors.type.js.map +1 -0
- package/dist/component/type/selector-methods.type.d.ts +2 -0
- package/dist/component/type/selector-methods.type.d.ts.map +1 -0
- package/dist/{type → component/type}/selector-methods.type.js +0 -0
- package/dist/component/type/selector-methods.type.js.map +1 -0
- package/dist/{type → component/type}/selector-object.type.d.ts +4 -0
- package/dist/component/type/selector-object.type.d.ts.map +1 -0
- package/dist/{type → component/type}/selector-object.type.js +0 -0
- package/dist/component/type/selector-object.type.js.map +1 -0
- package/dist/{type → component/type}/wdio-types.type.d.ts +1 -0
- package/dist/component/type/wdio-types.type.d.ts.map +1 -0
- package/dist/{type → component/type}/wdio-types.type.js +0 -0
- package/dist/component/type/wdio-types.type.js.map +1 -0
- package/dist/component/util/find-enum-root-selector.util.d.ts +3 -0
- package/dist/component/util/find-enum-root-selector.util.d.ts.map +1 -0
- package/dist/component/util/find-enum-root-selector.util.js +11 -0
- package/dist/component/util/find-enum-root-selector.util.js.map +1 -0
- package/dist/component/util/index.d.ts +3 -0
- package/dist/component/util/index.d.ts.map +1 -0
- package/dist/component/util/index.js +8 -0
- package/dist/component/util/index.js.map +1 -0
- package/dist/component/util/proxy-call.util.d.ts +4 -0
- package/dist/component/util/proxy-call.util.d.ts.map +1 -0
- package/dist/component/util/proxy-call.util.js +73 -0
- package/dist/component/util/proxy-call.util.js.map +1 -0
- package/dist/type/index.d.ts +0 -4
- package/dist/type/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/type/component-with-selectors.type.d.ts +0 -6
- package/dist/type/component-with-selectors.type.d.ts.map +0 -1
- package/dist/type/component-with-selectors.type.js.map +0 -1
- package/dist/type/selector-methods.type.d.ts +0 -2
- package/dist/type/selector-methods.type.d.ts.map +0 -1
- package/dist/type/selector-methods.type.js.map +0 -1
- package/dist/type/selector-object.type.d.ts.map +0 -1
- package/dist/type/selector-object.type.js.map +0 -1
- package/dist/type/wdio-types.type.d.ts.map +0 -1
- package/dist/type/wdio-types.type.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-deep-link.command.d.ts","sourceRoot":"","sources":["../../../src/command/mobile/open-deep-link.command.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,mBAAmB,QACvB,MAAM,gBACE,MAAM,KACpB,QAAQ,IAAI,
|
|
1
|
+
{"version":3,"file":"open-deep-link.command.d.ts","sourceRoot":"","sources":["../../../src/command/mobile/open-deep-link.command.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,mBAAmB,QACvB,MAAM,gBACE,MAAM,KACpB,QAAQ,IAAI,CAuBd,CAAC"}
|
|
@@ -50,7 +50,7 @@ var getPackageNameFromCapabilities = function (context) {
|
|
|
50
50
|
var openDeepLinkCommand = function (url, packageName) {
|
|
51
51
|
if (packageName === void 0) { packageName = getPackageNameFromCapabilities(browser); }
|
|
52
52
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
53
|
-
var
|
|
53
|
+
var addressBar, urlField;
|
|
54
54
|
return __generator(this, function (_a) {
|
|
55
55
|
switch (_a.label) {
|
|
56
56
|
case 0:
|
|
@@ -61,30 +61,36 @@ var openDeepLinkCommand = function (url, packageName) {
|
|
|
61
61
|
return [4 /*yield*/, driver.execute('mobile:deepLink', { url: url, package: packageName })];
|
|
62
62
|
case 1:
|
|
63
63
|
_a.sent();
|
|
64
|
-
return [3 /*break*/,
|
|
64
|
+
return [3 /*break*/, 9];
|
|
65
65
|
case 2:
|
|
66
|
-
if (!(0, capability_1.isIOSCapability)()) return [3 /*break*/,
|
|
66
|
+
if (!(0, capability_1.isIOSCapability)()) return [3 /*break*/, 9];
|
|
67
67
|
// TODO: Find better IOS implementation, improve speed
|
|
68
68
|
return [4 /*yield*/, driver.execute('mobile: launchApp', { bundleId: 'com.apple.mobilesafari' })];
|
|
69
69
|
case 3:
|
|
70
70
|
// TODO: Find better IOS implementation, improve speed
|
|
71
71
|
_a.sent();
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
return [4 /*yield*/,
|
|
72
|
+
addressBar = $("//XCUIElementTypeOther[@name=\"CapsuleNavigationBar?isSelected=true\"]");
|
|
73
|
+
urlField = $("//XCUIElementTypeApplication[@name=\"Safari\"]/XCUIElementTypeWindow[3]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[1]");
|
|
74
|
+
return [4 /*yield*/, driver.isKeyboardShown()];
|
|
75
75
|
case 4:
|
|
76
|
-
|
|
77
|
-
return [4 /*yield*/,
|
|
76
|
+
if (!!(_a.sent())) return [3 /*break*/, 7];
|
|
77
|
+
return [4 /*yield*/, addressBar.click()];
|
|
78
78
|
case 5:
|
|
79
|
-
|
|
80
|
-
return [4 /*yield*/,
|
|
79
|
+
_a.sent();
|
|
80
|
+
return [4 /*yield*/, driver.waitUntil(function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
81
|
+
switch (_a.label) {
|
|
82
|
+
case 0: return [4 /*yield*/, driver.isKeyboardShown()];
|
|
83
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
84
|
+
}
|
|
85
|
+
}); }); })];
|
|
81
86
|
case 6:
|
|
82
87
|
_a.sent();
|
|
83
|
-
|
|
84
|
-
case 7:
|
|
88
|
+
_a.label = 7;
|
|
89
|
+
case 7: return [4 /*yield*/, urlField.setValue("".concat(url, "\uE007"))];
|
|
90
|
+
case 8:
|
|
85
91
|
_a.sent();
|
|
86
|
-
_a.label =
|
|
87
|
-
case
|
|
92
|
+
_a.label = 9;
|
|
93
|
+
case 9: return [2 /*return*/];
|
|
88
94
|
}
|
|
89
95
|
});
|
|
90
96
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-deep-link.command.js","sourceRoot":"","sources":["../../../src/command/mobile/open-deep-link.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,gDAAsD;AAEtD,+CAAwE;AAExE,IAAM,8BAA8B,GAAG,UAAC,OAA4B;IAChE,OAAA,YAAY,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,UAAG,OAAO,CAAC,YAAY,CAAC,UAAoB,CAAE,CAAC,CAAC,CAAC,EAAE;AAA1F,CAA0F,CAAC;AAExF,IAAM,mBAAmB,GAAG,UAC/B,GAAW,EACX,WAA6D;IAA7D,4BAAA,EAAA,cAAsB,8BAA8B,CAAC,OAAO,CAAC;;;;;;yBAEzD,IAAA,gCAAmB,GAAE,EAArB,wBAAqB;oBACrB,IAAI,IAAA,sBAAa,EAAC,WAAW,CAAC,EAAE;wBAC5B,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;qBAC5E;oBAED,qBAAM,MAAM,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,GAAG,KAAA,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,EAAA;;oBAAtE,SAAsE,CAAC;;;yBAChE,IAAA,4BAAe,GAAE,EAAjB,wBAAiB;oBACxB,sDAAsD;oBACtD,qBAAM,MAAM,CAAC,OAAO,CAAC,mBAAmB,EAAE,EAAE,QAAQ,EAAE,wBAAwB,EAAE,CAAC,EAAA;;oBADjF,sDAAsD;oBACtD,SAAiF,CAAC;
|
|
1
|
+
{"version":3,"file":"open-deep-link.command.js","sourceRoot":"","sources":["../../../src/command/mobile/open-deep-link.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,gDAAsD;AAEtD,+CAAwE;AAExE,IAAM,8BAA8B,GAAG,UAAC,OAA4B;IA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AAC,EAAA;;oBAAvC,SAAuC,CAAC;;;;;;CAE/C,CAAC;AA1BW,QAAA,mBAAmB,uBA0B9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slow-input.command.d.ts","sourceRoot":"","sources":["../../src/command/slow-input.command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slow-input.command.d.ts","sourceRoot":"","sources":["../../src/command/slow-input.command.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,SACnB,YAAY,OAAO,SAClB,MAAM,qBAEd,QAAQ,IAAI,CASd,CAAC"}
|
|
@@ -44,6 +44,7 @@ var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
46
|
exports.slowInputCommand = void 0;
|
|
47
|
+
var capability_1 = require("../capability");
|
|
47
48
|
var DEFAULT_INPUT_DELAY = 300;
|
|
48
49
|
var slowInputCommand = function slowInputCommand(value, delay) {
|
|
49
50
|
var e_1, _a;
|
|
@@ -53,39 +54,45 @@ var slowInputCommand = function slowInputCommand(value, delay) {
|
|
|
53
54
|
return __generator(this, function (_d) {
|
|
54
55
|
switch (_d.label) {
|
|
55
56
|
case 0:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
if (!(0, capability_1.isAndroidCapability)()) return [3 /*break*/, 2];
|
|
58
|
+
return [4 /*yield*/, this.setValue(value)];
|
|
59
|
+
case 1:
|
|
60
|
+
_d.sent();
|
|
61
|
+
return [3 /*break*/, 15];
|
|
60
62
|
case 2:
|
|
61
|
-
|
|
63
|
+
_d.trys.push([2, 9, 10, 15]);
|
|
64
|
+
_b = __asyncValues(value.split(''));
|
|
65
|
+
_d.label = 3;
|
|
66
|
+
case 3: return [4 /*yield*/, _b.next()];
|
|
67
|
+
case 4:
|
|
68
|
+
if (!(_c = _d.sent(), !_c.done)) return [3 /*break*/, 8];
|
|
62
69
|
char = _c.value;
|
|
63
70
|
return [4 /*yield*/, browser.pause(delay)];
|
|
64
|
-
case
|
|
71
|
+
case 5:
|
|
65
72
|
_d.sent();
|
|
66
73
|
return [4 /*yield*/, this.addValue(char)];
|
|
67
|
-
case
|
|
74
|
+
case 6:
|
|
68
75
|
_d.sent();
|
|
69
|
-
_d.label =
|
|
70
|
-
case
|
|
71
|
-
case
|
|
72
|
-
case
|
|
76
|
+
_d.label = 7;
|
|
77
|
+
case 7: return [3 /*break*/, 3];
|
|
78
|
+
case 8: return [3 /*break*/, 15];
|
|
79
|
+
case 9:
|
|
73
80
|
e_1_1 = _d.sent();
|
|
74
81
|
e_1 = { error: e_1_1 };
|
|
75
|
-
return [3 /*break*/,
|
|
76
|
-
case
|
|
77
|
-
_d.trys.push([
|
|
78
|
-
if (!(_c && !_c.done && (_a = _b.return))) return [3 /*break*/,
|
|
82
|
+
return [3 /*break*/, 15];
|
|
83
|
+
case 10:
|
|
84
|
+
_d.trys.push([10, , 13, 14]);
|
|
85
|
+
if (!(_c && !_c.done && (_a = _b.return))) return [3 /*break*/, 12];
|
|
79
86
|
return [4 /*yield*/, _a.call(_b)];
|
|
80
|
-
case 9:
|
|
81
|
-
_d.sent();
|
|
82
|
-
_d.label = 10;
|
|
83
|
-
case 10: return [3 /*break*/, 12];
|
|
84
87
|
case 11:
|
|
88
|
+
_d.sent();
|
|
89
|
+
_d.label = 12;
|
|
90
|
+
case 12: return [3 /*break*/, 14];
|
|
91
|
+
case 13:
|
|
85
92
|
if (e_1) throw e_1.error;
|
|
86
93
|
return [7 /*endfinally*/];
|
|
87
|
-
case
|
|
88
|
-
case
|
|
94
|
+
case 14: return [7 /*endfinally*/];
|
|
95
|
+
case 15: return [2 /*return*/];
|
|
89
96
|
}
|
|
90
97
|
});
|
|
91
98
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slow-input.command.js","sourceRoot":"","sources":["../../src/command/slow-input.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,mBAAmB,GAAG,GAAG,CAAC;AAEzB,IAAM,gBAAgB,GAAG,SAAe,gBAAgB,CAE3D,KAAa,EACb,KAA2B;;IAA3B,sBAAA,EAAA,2BAA2B
|
|
1
|
+
{"version":3,"file":"slow-input.command.js","sourceRoot":"","sources":["../../src/command/slow-input.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAoD;AAEpD,IAAM,mBAAmB,GAAG,GAAG,CAAC;AAEzB,IAAM,gBAAgB,GAAG,SAAe,gBAAgB,CAE3D,KAAa,EACb,KAA2B;;IAA3B,sBAAA,EAAA,2BAA2B;;;;;;yBAEvB,IAAA,gCAAmB,GAAE,EAArB,wBAAqB;oBACrB,qBAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAA;;oBAA1B,SAA0B,CAAC;;;;oBAEF,KAAA,cAAA,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;;;;;oBAAvB,IAAI,WAAA,CAAA;oBACjB,qBAAM,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,EAAA;;oBAA1B,SAA0B,CAAC;oBAC3B,qBAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAA;;oBAAzB,SAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;CAGrC,CAAC;AAbW,QAAA,gBAAgB,oBAa3B"}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
/// <reference types="webdriverio/async" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { ClickArgs, SetValueArgs, WaitForDisplayedArgs, WaitForEnabledArgs, WaitForExistArgs } from '../type';
|
|
3
|
+
import type { Location } from 'webdriverio/build/commands/element/getLocation';
|
|
4
|
+
import type { Size } from 'webdriverio/build/commands/element/getSize';
|
|
3
5
|
export declare class Component {
|
|
4
|
-
clickChildEl(selector: string): Promise<void>;
|
|
5
|
-
clickByIdxChildEl(selector: string, idx: number): Promise<void>;
|
|
6
|
-
setValueChildEl(selector: string, args: SetValueArgs): Promise<void>;
|
|
6
|
+
clickChildEl(selector: string, ...args: ClickArgs): Promise<void>;
|
|
7
|
+
clickByIdxChildEl(selector: string, idx: number, ...args: ClickArgs): Promise<void>;
|
|
8
|
+
setValueChildEl(selector: string, ...args: SetValueArgs): Promise<void>;
|
|
7
9
|
isDisplayedChildEl(selector: string): Promise<boolean>;
|
|
8
10
|
isExistingChildEl(selector: string): Promise<boolean>;
|
|
9
11
|
getTextChildEl(selector: string): Promise<string>;
|
|
10
|
-
|
|
11
|
-
waitForDisplayedChildEl(selector: string, args: WaitForDisplayedArgs): Promise<void>;
|
|
12
|
-
waitForEnabledChildEl(selector: string, args: WaitForEnabledArgs): Promise<void>;
|
|
12
|
+
waitForExistChildEl(selector: string, ...args: WaitForExistArgs): Promise<void>;
|
|
13
|
+
waitForDisplayedChildEl(selector: string, ...args: WaitForDisplayedArgs): Promise<void>;
|
|
14
|
+
waitForEnabledChildEl(selector: string, ...args: WaitForEnabledArgs): Promise<void>;
|
|
15
|
+
getLocationChildEl(selector: string): Promise<Location>;
|
|
16
|
+
getSizeChildEl(selector: string): Promise<Size>;
|
|
13
17
|
getChildEl(selector: string): Promise<WebdriverIO.Element>;
|
|
14
18
|
getChildEls(selector: string): Promise<WebdriverIO.ElementArray>;
|
|
15
19
|
getChildElByIdx(selector: string, idx: number): Promise<WebdriverIO.Element>;
|
|
16
|
-
protected getSelectorObject(selectorValue: string): SelectorObject;
|
|
17
|
-
protected callDynamicMethod<T extends string>(selectors: Enum<T>, field: string): unknown;
|
|
18
20
|
}
|
|
19
21
|
//# sourceMappingURL=component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/component/component/component.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../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AAO,CAAC,IAAI,CAAC;IAK/C,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC;IAK1D,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC;IAKhE,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC;CAGrF"}
|
|
@@ -37,38 +37,51 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Component = void 0;
|
|
40
|
-
var shared_1 = require("@rnw-community/shared");
|
|
41
40
|
var command_1 = require("../../command");
|
|
42
41
|
var Component = /** @class */ (function () {
|
|
43
42
|
function Component() {
|
|
44
43
|
}
|
|
45
44
|
Component.prototype.clickChildEl = function (selector) {
|
|
45
|
+
var args = [];
|
|
46
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
47
|
+
args[_i - 1] = arguments[_i];
|
|
48
|
+
}
|
|
46
49
|
return __awaiter(this, void 0, void 0, function () {
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
var _a;
|
|
51
|
+
return __generator(this, function (_b) {
|
|
52
|
+
switch (_b.label) {
|
|
49
53
|
case 0: return [4 /*yield*/, this.getChildEl(selector)];
|
|
50
|
-
case 1: return [4 /*yield*/, (_a.sent()).click()];
|
|
54
|
+
case 1: return [4 /*yield*/, (_a = (_b.sent())).click.apply(_a, args)];
|
|
51
55
|
case 2:
|
|
52
|
-
|
|
56
|
+
_b.sent();
|
|
53
57
|
return [2 /*return*/];
|
|
54
58
|
}
|
|
55
59
|
});
|
|
56
60
|
});
|
|
57
61
|
};
|
|
58
62
|
Component.prototype.clickByIdxChildEl = function (selector, idx) {
|
|
63
|
+
var args = [];
|
|
64
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
65
|
+
args[_i - 2] = arguments[_i];
|
|
66
|
+
}
|
|
59
67
|
return __awaiter(this, void 0, void 0, function () {
|
|
60
|
-
|
|
61
|
-
|
|
68
|
+
var _a;
|
|
69
|
+
return __generator(this, function (_b) {
|
|
70
|
+
switch (_b.label) {
|
|
62
71
|
case 0: return [4 /*yield*/, this.getChildElByIdx(selector, idx)];
|
|
63
|
-
case 1: return [4 /*yield*/, (_a.sent()).click()];
|
|
72
|
+
case 1: return [4 /*yield*/, (_a = (_b.sent())).click.apply(_a, args)];
|
|
64
73
|
case 2:
|
|
65
|
-
|
|
74
|
+
_b.sent();
|
|
66
75
|
return [2 /*return*/];
|
|
67
76
|
}
|
|
68
77
|
});
|
|
69
78
|
});
|
|
70
79
|
};
|
|
71
|
-
Component.prototype.setValueChildEl = function (selector
|
|
80
|
+
Component.prototype.setValueChildEl = function (selector) {
|
|
81
|
+
var args = [];
|
|
82
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
83
|
+
args[_i - 1] = arguments[_i];
|
|
84
|
+
}
|
|
72
85
|
return __awaiter(this, void 0, void 0, function () {
|
|
73
86
|
var _a;
|
|
74
87
|
return __generator(this, function (_b) {
|
|
@@ -115,7 +128,11 @@ var Component = /** @class */ (function () {
|
|
|
115
128
|
});
|
|
116
129
|
});
|
|
117
130
|
};
|
|
118
|
-
Component.prototype.
|
|
131
|
+
Component.prototype.waitForExistChildEl = function (selector) {
|
|
132
|
+
var args = [];
|
|
133
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
134
|
+
args[_i - 1] = arguments[_i];
|
|
135
|
+
}
|
|
119
136
|
return __awaiter(this, void 0, void 0, function () {
|
|
120
137
|
var _a;
|
|
121
138
|
return __generator(this, function (_b) {
|
|
@@ -129,7 +146,11 @@ var Component = /** @class */ (function () {
|
|
|
129
146
|
});
|
|
130
147
|
});
|
|
131
148
|
};
|
|
132
|
-
Component.prototype.waitForDisplayedChildEl = function (selector
|
|
149
|
+
Component.prototype.waitForDisplayedChildEl = function (selector) {
|
|
150
|
+
var args = [];
|
|
151
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
152
|
+
args[_i - 1] = arguments[_i];
|
|
153
|
+
}
|
|
133
154
|
return __awaiter(this, void 0, void 0, function () {
|
|
134
155
|
var _a;
|
|
135
156
|
return __generator(this, function (_b) {
|
|
@@ -143,7 +164,11 @@ var Component = /** @class */ (function () {
|
|
|
143
164
|
});
|
|
144
165
|
});
|
|
145
166
|
};
|
|
146
|
-
Component.prototype.waitForEnabledChildEl = function (selector
|
|
167
|
+
Component.prototype.waitForEnabledChildEl = function (selector) {
|
|
168
|
+
var args = [];
|
|
169
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
170
|
+
args[_i - 1] = arguments[_i];
|
|
171
|
+
}
|
|
147
172
|
return __awaiter(this, void 0, void 0, function () {
|
|
148
173
|
var _a;
|
|
149
174
|
return __generator(this, function (_b) {
|
|
@@ -157,6 +182,28 @@ var Component = /** @class */ (function () {
|
|
|
157
182
|
});
|
|
158
183
|
});
|
|
159
184
|
};
|
|
185
|
+
Component.prototype.getLocationChildEl = function (selector) {
|
|
186
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
187
|
+
return __generator(this, function (_a) {
|
|
188
|
+
switch (_a.label) {
|
|
189
|
+
case 0: return [4 /*yield*/, this.getChildEl(selector)];
|
|
190
|
+
case 1: return [4 /*yield*/, (_a.sent()).getLocation()];
|
|
191
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
Component.prototype.getSizeChildEl = function (selector) {
|
|
197
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
198
|
+
return __generator(this, function (_a) {
|
|
199
|
+
switch (_a.label) {
|
|
200
|
+
case 0: return [4 /*yield*/, this.getChildEl(selector)];
|
|
201
|
+
case 1: return [4 /*yield*/, (_a.sent()).getSize()];
|
|
202
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
};
|
|
160
207
|
// eslint-disable-next-line class-methods-use-this
|
|
161
208
|
Component.prototype.getChildEl = function (selector) {
|
|
162
209
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -190,54 +237,6 @@ var Component = /** @class */ (function () {
|
|
|
190
237
|
});
|
|
191
238
|
});
|
|
192
239
|
};
|
|
193
|
-
Component.prototype.getSelectorObject = function (selectorValue) {
|
|
194
|
-
var _this = this;
|
|
195
|
-
return {
|
|
196
|
-
el: function () { return _this.getChildEl(selectorValue); },
|
|
197
|
-
els: function () { return _this.getChildEls(selectorValue); },
|
|
198
|
-
byIdx: function (idx) { return _this.getChildElByIdx(selectorValue, idx); },
|
|
199
|
-
waitForDisplayed: function () {
|
|
200
|
-
var args = [];
|
|
201
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
202
|
-
args[_i] = arguments[_i];
|
|
203
|
-
}
|
|
204
|
-
return _this.waitForDisplayedChildEl(selectorValue, args);
|
|
205
|
-
},
|
|
206
|
-
waitForExist: function () {
|
|
207
|
-
var args = [];
|
|
208
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
209
|
-
args[_i] = arguments[_i];
|
|
210
|
-
}
|
|
211
|
-
return _this.waitForExistsChildEl(selectorValue, args);
|
|
212
|
-
},
|
|
213
|
-
waitForEnabled: function () {
|
|
214
|
-
var args = [];
|
|
215
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
216
|
-
args[_i] = arguments[_i];
|
|
217
|
-
}
|
|
218
|
-
return _this.waitForEnabledChildEl(selectorValue, args);
|
|
219
|
-
},
|
|
220
|
-
setValue: function () {
|
|
221
|
-
var args = [];
|
|
222
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
223
|
-
args[_i] = arguments[_i];
|
|
224
|
-
}
|
|
225
|
-
return _this.setValueChildEl(selectorValue, args);
|
|
226
|
-
},
|
|
227
|
-
click: function () { return _this.clickChildEl(selectorValue); },
|
|
228
|
-
clickByIdx: function (idx) { return _this.clickByIdxChildEl(selectorValue, idx); },
|
|
229
|
-
getText: function () { return _this.getTextChildEl(selectorValue); },
|
|
230
|
-
isDisplayed: function () { return _this.isDisplayedChildEl(selectorValue); },
|
|
231
|
-
isExisting: function () { return _this.isExistingChildEl(selectorValue); },
|
|
232
|
-
};
|
|
233
|
-
};
|
|
234
|
-
Component.prototype.callDynamicMethod = function (selectors, field) {
|
|
235
|
-
var selectorValue = selectors[field];
|
|
236
|
-
if (!(0, shared_1.isDefined)(selectorValue)) {
|
|
237
|
-
return undefined;
|
|
238
|
-
}
|
|
239
|
-
return this.getSelectorObject(selectorValue);
|
|
240
|
-
};
|
|
241
240
|
return Component;
|
|
242
241
|
}());
|
|
243
242
|
exports.Component = Component;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/component/component/component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/component/component/component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAiE;AAMjE;IAAA;IA2DA,CAAC;IA1DS,gCAAY,GAAlB,UAAmB,QAAgB;QAAE,cAAkB;aAAlB,UAAkB,EAAlB,qBAAkB,EAAlB,IAAkB;YAAlB,6BAAkB;;;;;;4BAC5C,qBAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAA;4BAAtC,qBAAM,CAAA,KAAA,CAAC,SAA+B,CAAC,CAAA,CAAC,KAAK,WAAI,IAAI,GAAC;;wBAAtD,SAAsD,CAAC;;;;;KAC1D;IAEK,qCAAiB,GAAvB,UAAwB,QAAgB,EAAE,GAAW;QAAE,cAAkB;aAAlB,UAAkB,EAAlB,qBAAkB,EAAlB,IAAkB;YAAlB,6BAAkB;;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KAClC;IAED,kDAAkD;IAC5C,+BAAW,GAAjB,UAAkB,QAAgB;;;;4BACvB,qBAAM,IAAA,kBAAQ,EAAC,QAAQ,CAAC,EAAA;4BAA/B,sBAAO,SAAwB,EAAC;;;;KACnC;IAED,kDAAkD;IAC5C,mCAAe,GAArB,UAAsB,QAAgB,EAAE,GAAW;;;;4BACxC,qBAAM,IAAA,uBAAa,EAAC,QAAQ,EAAE,GAAG,CAAC,EAAA;4BAAzC,sBAAO,SAAkC,EAAC;;;;KAC7C;IACL,gBAAC;AAAD,CAAC,AA3DD,IA2DC;AA3DY,8BAAS"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
export declare const createComponent: <T extends string>(selectors: Enum<T>) => ComponentWithSelectors<T
|
|
1
|
+
import type { Enum } from '../../type';
|
|
2
|
+
import type { ComponentWithSelectors } from '../type';
|
|
3
|
+
export declare const createComponent: <T extends string>(selectors: Enum<T>) => ComponentWithSelectors<T>;
|
|
4
4
|
//# sourceMappingURL=create-component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-component.d.ts","sourceRoot":"","sources":["../../../src/component/create-component/create-component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"create-component.d.ts","sourceRoot":"","sources":["../../../src/component/create-component/create-component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,eAAO,MAAM,eAAe,qEACU,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
export declare const createRootedComponent: <T extends string>(selectors: Enum<T>, selectorOrElement?: WebdriverIO.Element | string) => ComponentWithSelectors<T
|
|
1
|
+
import type { Enum } from '../../type';
|
|
2
|
+
import type { ComponentWithSelectors } from '../type';
|
|
3
|
+
export declare const createRootedComponent: <T extends string>(selectors: Enum<T>, selectorOrElement?: WebdriverIO.Element | string) => ComponentWithSelectors<T>;
|
|
4
4
|
//# sourceMappingURL=create-rooted-component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-rooted-component.d.ts","sourceRoot":"","sources":["../../../src/component/create-rooted-component/create-rooted-component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"create-rooted-component.d.ts","sourceRoot":"","sources":["../../../src/component/create-rooted-component/create-rooted-component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,eAAO,MAAM,qBAAqB,6DAEV,YAAY,OAAO,GAAG,MAAM,8BACqC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-rooted-component.js","sourceRoot":"","sources":["../../../src/component/create-rooted-component/create-rooted-component.ts"],"names":[],"mappings":";;;AAAA,qFAAkF;AAK3E,IAAM,qBAAqB,GAAG,UACjC,SAAkB,EAClB,iBAAgD,
|
|
1
|
+
{"version":3,"file":"create-rooted-component.js","sourceRoot":"","sources":["../../../src/component/create-rooted-component/create-rooted-component.ts"],"names":[],"mappings":";;;AAAA,qFAAkF;AAK3E,IAAM,qBAAqB,GAAG,UACjC,SAAkB,EAClB,iBAAgD,IACpB,OAAA,IAAI,CAAC,IAAA,yCAAkB,EAAI,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,EAAzD,CAAyD,CAAC;AAH7E,QAAA,qBAAqB,yBAGwD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { ComponentWithSelectors
|
|
3
|
-
declare type ComponentWithSelectorsCtor<T extends string> = new (selectorOrElement?: WebdriverIO.Element | string) => ComponentWithSelectors<T
|
|
1
|
+
import type { Enum } from '../../type';
|
|
2
|
+
import type { ComponentWithSelectors } from '../type';
|
|
3
|
+
declare type ComponentWithSelectorsCtor<T extends string> = new (selectorOrElement?: WebdriverIO.Element | string) => ComponentWithSelectors<T>;
|
|
4
4
|
export declare const getComponent: <T extends string>(selectors: Enum<T>) => ComponentWithSelectorsCtor<T>;
|
|
5
5
|
export {};
|
|
6
6
|
//# sourceMappingURL=get-component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-component.d.ts","sourceRoot":"","sources":["../../../src/component/get-component/get-component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-component.d.ts","sourceRoot":"","sources":["../../../src/component/get-component/get-component.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,aAAK,0BAA0B,CAAC,CAAC,SAAS,MAAM,IAAI,KAChD,iBAAiB,CAAC,EAAE,WAAW,CAAC,OAAO,GAAG,MAAM,KAC/C,sBAAsB,CAAC,CAAC,CAAC,CAAC;AAE/B,eAAO,MAAM,YAAY,yEAkBpB,CAAC"}
|
|
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.getComponent = void 0;
|
|
19
19
|
var component_1 = require("../component/component");
|
|
20
|
+
var util_1 = require("../util");
|
|
20
21
|
var getComponent = function (selectors) {
|
|
21
22
|
// @ts-expect-error We use proxy for dynamic fields
|
|
22
23
|
return /** @class */ (function (_super) {
|
|
@@ -30,7 +31,7 @@ var getComponent = function (selectors) {
|
|
|
30
31
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
31
32
|
return Reflect.get(client, field, receiver);
|
|
32
33
|
}
|
|
33
|
-
return
|
|
34
|
+
return (0, util_1.proxyCall)(client, selectors, field);
|
|
34
35
|
},
|
|
35
36
|
});
|
|
36
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-component.js","sourceRoot":"","sources":["../../../src/component/get-component/get-component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,oDAAmD;
|
|
1
|
+
{"version":3,"file":"get-component.js","sourceRoot":"","sources":["../../../src/component/get-component/get-component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,oDAAmD;AACnD,gCAAoC;AAS7B,IAAM,YAAY,GAAG,UAAmB,SAAkB;IAC7D,mDAAmD;IACnD;QAAc,2BAAS;QACnB;YAAA,YACI,iBAAO,SAaV;YAXG,iDAAiD;YACjD,OAAO,IAAI,KAAK,CAAC,KAAI,EAAE;gBACnB,GAAG,EAAH,UAAI,MAAM,EAAE,KAAQ,EAAE,QAAQ;oBAC1B,IAAI,KAAK,IAAI,MAAM,EAAE;wBACjB,+DAA+D;wBAC/D,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;qBAC/C;oBAED,OAAO,IAAA,gBAAS,EAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;gBAC/C,CAAC;aACJ,CAAC,CAAC;QACP,CAAC;QACL,cAAC;IAAD,CAAC,AAhBD,CAAc,qBAAS;AAAvB,CAgBC,CAAC;AAlBO,QAAA,YAAY,gBAkBnB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
3
|
-
declare type RootedComponentWithSelectorsCtor<T extends string> = new (selectorOrElement?: WebdriverIO.Element | string) =>
|
|
1
|
+
import type { Enum } from '../../type';
|
|
2
|
+
import type { RootedComponentWithSelectors } from '../type';
|
|
3
|
+
declare type RootedComponentWithSelectorsCtor<T extends string> = new (selectorOrElement?: WebdriverIO.Element | string) => RootedComponentWithSelectors<T>;
|
|
4
4
|
export declare const getRootedComponent: <T extends string>(selectors: Enum<T>) => RootedComponentWithSelectorsCtor<T>;
|
|
5
5
|
export {};
|
|
6
6
|
//# sourceMappingURL=get-rooted-component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-rooted-component.d.ts","sourceRoot":"","sources":["../../../src/component/get-rooted-component/get-rooted-component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-rooted-component.d.ts","sourceRoot":"","sources":["../../../src/component/get-rooted-component/get-rooted-component.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAE5D,aAAK,gCAAgC,CAAC,CAAC,SAAS,MAAM,IAAI,KACtD,iBAAiB,CAAC,EAAE,WAAW,CAAC,OAAO,GAAG,MAAM,KAC/C,4BAA4B,CAAC,CAAC,CAAC,CAAC;AAErC,eAAO,MAAM,kBAAkB,+EAwB1B,CAAC"}
|
|
@@ -18,18 +18,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.getRootedComponent = void 0;
|
|
19
19
|
var shared_1 = require("@rnw-community/shared");
|
|
20
20
|
var rooted_component_1 = require("../rooted-component/rooted-component");
|
|
21
|
+
var util_1 = require("../util");
|
|
21
22
|
var getRootedComponent = function (selectors) {
|
|
22
23
|
// @ts-expect-error We use proxy for dynamic fields
|
|
23
24
|
return /** @class */ (function (_super) {
|
|
24
25
|
__extends(class_1, _super);
|
|
25
26
|
function class_1(selectorOrElement) {
|
|
26
27
|
var _this = this;
|
|
27
|
-
var
|
|
28
|
-
var rootSelectorKey = selectorKeys.find(function (key) { return key === 'Root'; });
|
|
29
|
-
var selectorRootKey = (0, shared_1.isDefined)(rootSelectorKey) ? selectors[rootSelectorKey] : undefined;
|
|
30
|
-
var rootSelector = (0, shared_1.isDefined)(selectorOrElement) ? selectorOrElement : selectorRootKey;
|
|
28
|
+
var rootSelector = (0, shared_1.isDefined)(selectorOrElement) ? selectorOrElement : (0, util_1.findEnumRootSelector)(selectors);
|
|
31
29
|
if (!(0, shared_1.isDefined)(rootSelector)) {
|
|
32
|
-
throw new Error('Cannot create
|
|
30
|
+
throw new Error('Cannot create RootedComponent - Neither root selector nor root element is passed');
|
|
33
31
|
}
|
|
34
32
|
_this = _super.call(this, rootSelector) || this;
|
|
35
33
|
// eslint-disable-next-line no-constructor-return
|
|
@@ -39,7 +37,7 @@ var getRootedComponent = function (selectors) {
|
|
|
39
37
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
40
38
|
return Reflect.get(client, field, receiver);
|
|
41
39
|
}
|
|
42
|
-
return
|
|
40
|
+
return (0, util_1.proxyCall)(client, selectors, field);
|
|
43
41
|
},
|
|
44
42
|
});
|
|
45
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-rooted-component.js","sourceRoot":"","sources":["../../../src/component/get-rooted-component/get-rooted-component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,gDAAkD;AAElD,yEAAuE;
|
|
1
|
+
{"version":3,"file":"get-rooted-component.js","sourceRoot":"","sources":["../../../src/component/get-rooted-component/get-rooted-component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,gDAAkD;AAElD,yEAAuE;AACvE,gCAA0D;AASnD,IAAM,kBAAkB,GAAG,UAAmB,SAAkB;IACnE,mDAAmD;IACnD;QAAc,2BAAe;QACzB,iBAAY,iBAAgD;YAA5D,iBAoBC;YAnBG,IAAM,YAAY,GAAG,IAAA,kBAAS,EAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAA,2BAAoB,EAAC,SAAS,CAAC,CAAC;YAExG,IAAI,CAAC,IAAA,kBAAS,EAAC,YAAY,CAAC,EAAE;gBAC1B,MAAM,IAAI,KAAK,CAAC,kFAAkF,CAAC,CAAC;aACvG;oBAED,kBAAM,YAAY,CAAC;YAEnB,iDAAiD;YACjD,OAAO,IAAI,KAAK,CAAC,KAAI,EAAE;gBACnB,GAAG,EAAH,UAAI,MAAM,EAAE,KAAQ,EAAE,QAAQ;oBAC1B,IAAI,KAAK,IAAI,MAAM,EAAE;wBACjB,+DAA+D;wBAC/D,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;qBAC/C;oBAED,OAAO,IAAA,gBAAS,EAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;gBAC/C,CAAC;aACJ,CAAC,CAAC;QACP,CAAC;QACL,cAAC;IAAD,CAAC,AAtBD,CAAc,kCAAe;AAA7B,CAsBC,CAAC;AAxBO,QAAA,kBAAkB,sBAwBzB"}
|
|
@@ -4,4 +4,5 @@ export { createComponent } from './create-component/create-component';
|
|
|
4
4
|
export { RootedComponent } from './rooted-component/rooted-component';
|
|
5
5
|
export { getRootedComponent } from './get-rooted-component/get-rooted-component';
|
|
6
6
|
export { createRootedComponent } from './create-rooted-component/create-rooted-component';
|
|
7
|
+
export * from './util';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/component/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/component/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAE1F,cAAc,QAAQ,CAAC"}
|
package/dist/component/index.js
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
17
|
exports.createRootedComponent = exports.getRootedComponent = exports.RootedComponent = exports.createComponent = exports.getComponent = exports.Component = void 0;
|
|
4
18
|
var component_1 = require("./component/component");
|
|
@@ -13,4 +27,5 @@ var get_rooted_component_1 = require("./get-rooted-component/get-rooted-componen
|
|
|
13
27
|
Object.defineProperty(exports, "getRootedComponent", { enumerable: true, get: function () { return get_rooted_component_1.getRootedComponent; } });
|
|
14
28
|
var create_rooted_component_1 = require("./create-rooted-component/create-rooted-component");
|
|
15
29
|
Object.defineProperty(exports, "createRootedComponent", { enumerable: true, get: function () { return create_rooted_component_1.createRootedComponent; } });
|
|
30
|
+
__exportStar(require("./util"), exports);
|
|
16
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/component/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/component/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,mDAAkD;AAAzC,sGAAA,SAAS,OAAA;AAClB,+DAA6D;AAApD,6GAAA,YAAY,OAAA;AACrB,wEAAsE;AAA7D,mHAAA,eAAe,OAAA;AAExB,wEAAsE;AAA7D,mHAAA,eAAe,OAAA;AACxB,oFAAiF;AAAxE,0HAAA,kBAAkB,OAAA;AAC3B,6FAA0F;AAAjF,gIAAA,qBAAqB,OAAA;AAE9B,yCAAuB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="webdriverio/async" />
|
|
2
2
|
import { Component } from '../component/component';
|
|
3
|
-
import type { WaitForDisplayedArgs, WaitForEnabledArgs, WaitForExistArgs } from '
|
|
3
|
+
import type { ClickArgs, WaitForDisplayedArgs, WaitForEnabledArgs, WaitForExistArgs } from '../type';
|
|
4
4
|
export declare class RootedComponent extends Component {
|
|
5
5
|
private readonly constructorEl;
|
|
6
6
|
private readonly constructorSelector;
|
|
@@ -11,7 +11,7 @@ export declare class RootedComponent extends Component {
|
|
|
11
11
|
waitForExist(...args: WaitForExistArgs): Promise<void>;
|
|
12
12
|
isDisplayed(): Promise<boolean>;
|
|
13
13
|
isExisting(): Promise<boolean>;
|
|
14
|
-
click(): Promise<void>;
|
|
14
|
+
click(...args: ClickArgs): Promise<void>;
|
|
15
15
|
getChildEl(selector: string): Promise<WebdriverIO.Element>;
|
|
16
16
|
getChildEls(selector: string): Promise<WebdriverIO.ElementArray>;
|
|
17
17
|
getChildElByIdx(selector: string, idx: number): Promise<WebdriverIO.Element>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rooted-component.d.ts","sourceRoot":"","sources":["../../../src/component/rooted-component/rooted-component.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"rooted-component.d.ts","sourceRoot":"","sources":["../../../src/component/rooted-component/rooted-component.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAErG,qBAAa,eAAgB,SAAQ,SAAS;IAC1C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAkC;IAChE,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAc;gBAEtC,iBAAiB,EAAE,WAAW,CAAC,OAAO,GAAG,MAAM;IAU3D,IAAI,MAAM,IAAI,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAMzC;IAEK,gBAAgB,CAAC,GAAG,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9D,cAAc,CAAC,GAAG,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAI1D,YAAY,CAAC,GAAG,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAItD,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAI/B,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;IAI9B,KAAK,CAAC,GAAG,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/B,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC;IAI1D,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC;IAIhE,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC;CAG9F"}
|
|
@@ -155,13 +155,18 @@ var RootedComponent = /** @class */ (function (_super) {
|
|
|
155
155
|
});
|
|
156
156
|
};
|
|
157
157
|
RootedComponent.prototype.click = function () {
|
|
158
|
+
var args = [];
|
|
159
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
160
|
+
args[_i] = arguments[_i];
|
|
161
|
+
}
|
|
158
162
|
return __awaiter(this, void 0, void 0, function () {
|
|
159
|
-
|
|
160
|
-
|
|
163
|
+
var _a;
|
|
164
|
+
return __generator(this, function (_b) {
|
|
165
|
+
switch (_b.label) {
|
|
161
166
|
case 0: return [4 /*yield*/, this.RootEl];
|
|
162
|
-
case 1: return [4 /*yield*/, (_a.sent()).click()];
|
|
167
|
+
case 1: return [4 /*yield*/, (_a = (_b.sent())).click.apply(_a, args)];
|
|
163
168
|
case 2:
|
|
164
|
-
|
|
169
|
+
_b.sent();
|
|
165
170
|
return [2 /*return*/];
|
|
166
171
|
}
|
|
167
172
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rooted-component.js","sourceRoot":"","sources":["../../../src/component/rooted-component/rooted-component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAoE;AAEpE,yCAAiE;AACjE,oDAAmD;AAInD;IAAqC,mCAAS;IAI1C,yBAAY,iBAA+C;QAA3D,YACI,iBAAO,SAOV;QAVgB,yBAAmB,GAAW,EAAE,CAAC;QAK9C,IAAI,IAAA,yBAAgB,EAAC,iBAAiB,CAAC,EAAE;YACrC,KAAI,CAAC,mB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xB,qBAAM,CAAC,SAAiB,CAAC,CAAC,WAAW,EAAE,EAAA;4BAA9C,sBAAO,SAAuC,EAAC;;;;KAClD;IAEK,oCAAU,GAAhB;;;;4BACkB,qBAAM,IAAI,CAAC,MAAM,EAAA;4BAAxB,qBAAM,CAAC,SAAiB,CAAC,CAAC,UAAU,EAAE,EAAA;4BAA7C,sBAAO,SAAsC,EAAC;;;;KACjD;IAEK,+BAAK,GAAX
|
|
1
|
+
{"version":3,"file":"rooted-component.js","sourceRoot":"","sources":["../../../src/component/rooted-component/rooted-component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAoE;AAEpE,yCAAiE;AACjE,oDAAmD;AAInD;IAAqC,mCAAS;IAI1C,yBAAY,iBAA+C;QAA3D,YACI,iBAAO,SAOV;QAVgB,yBAAmB,GAAW,EAAE,CAAC;QAK9C,IAAI,IAAA,yBAAgB,EAAC,iBAAiB,CAAC,EAAE;YACrC,KAAI,CAAC,mBAAmB,GAAG,iBAAiB,CAAC;SAChD;aAAM,IAAI,IAAA,kBAAS,EAAC,iBAAiB,CAAC,EAAE;YACrC,KAAI,CAAC,aAAa,GAAG,iBAAiB,CAAC;SAC1C;;IACL,CAAC;IAED,sBAAI,mCAAM;aAAV;YACI,IAAI,IAAA,kBAAS,EAAC,IAAI,CAAC,aAAa,CAAC,EAAE;gBAC/B,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aAC9C;YAED,OAAO,IAAA,iBAAO,EAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;QAC7C,CAAC;;;OAAA;IAEK,0CAAgB,GAAtB;QAAuB,cAA6B;aAA7B,UAA6B,EAA7B,qBAA6B,EAA7B,IAA6B;YAA7B,yBAA6B;;;;;;4BACzC,qBAAM,IAAI,CAAC,MAAM,EAAA;4BAAxB,qBAAM,CAAA,KAAA,CAAC,SAAiB,CAAC,CAA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AQ;wBAAE,qBAAM,IAAI,CAAC,MAAM,EAAA;4BAAzC,qBAAM,4BAAkB,SAAiB,GAAC,EAAA;4BAAjD,sBAAO,SAA0C,EAAC;;;;KACrD;IAEc,qCAAW,GAA1B,UAA2B,QAAgB;;;;;;wBAC1B,KAAA,kBAAQ,CAAA;8BAAC,QAAQ;wBAAE,qBAAM,IAAI,CAAC,MAAM,EAAA;4BAA1C,qBAAM,4BAAmB,SAAiB,GAAC,EAAA;4BAAlD,sBAAO,SAA2C,EAAC;;;;KACtD;IAEc,yCAAe,GAA9B,UAA+B,QAAgB,EAAE,GAAW;;;;;;wBAC3C,KAAA,uBAAa,CAAA;8BAAC,QAAQ,EAAE,GAAG;wBAAE,qBAAM,IAAI,CAAC,MAAM,EAAA;4BAApD,qBAAM,4BAA6B,SAAiB,GAAC,EAAA;4BAA5D,sBAAO,SAAqD,EAAC;;;;KAChE;IACL,sBAAC;AAAD,CAAC,AAzDD,CAAqC,qBAAS,GAyD7C;AAzDY,0CAAe"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Component } from '../component/component';
|
|
2
|
+
import type { SelectorMethods } from './selector-methods.type';
|
|
3
|
+
import type { SelectorObject } from './selector-object.type';
|
|
4
|
+
export declare type ComponentWithSelectors<T extends string> = Component & {
|
|
5
|
+
[TKey in SelectorMethods<T>]: SelectorObject;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=component-with-selectors.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-with-selectors.type.d.ts","sourceRoot":"","sources":["../../../src/component/type/component-with-selectors.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,oBAAY,sBAAsB,CAAC,CAAC,SAAS,MAAM,IAAI,SAAS,GAAG;KAC9D,IAAI,IAAI,eAAe,CAAC,CAAC,CAAC,GAAG,cAAc;CAC/C,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-with-selectors.type.js","sourceRoot":"","sources":["../../../src/component/type/component-with-selectors.type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { ComponentWithSelectors } from './component-with-selectors.type';
|
|
2
|
+
export type { RootedComponentWithSelectors } from './rooted-component-with-selectors.type';
|
|
3
|
+
export type { WaitForDisplayedArgs, WaitForEnabledArgs, WaitForExistArgs, SetValueArgs, ClickArgs } from './wdio-types.type';
|
|
4
|
+
export type { SelectorMethods } from './selector-methods.type';
|
|
5
|
+
export type { SelectorObject } from './selector-object.type';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component/type/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,YAAY,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAC3F,YAAY,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC7H,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/component/type/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RootedComponent } from '../rooted-component/rooted-component';
|
|
2
|
+
import type { SelectorMethods } from './selector-methods.type';
|
|
3
|
+
import type { SelectorObject } from './selector-object.type';
|
|
4
|
+
export declare type RootedComponentWithSelectors<T extends string> = RootedComponent & {
|
|
5
|
+
[TKey in SelectorMethods<T>]: SelectorObject;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=rooted-component-with-selectors.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rooted-component-with-selectors.type.d.ts","sourceRoot":"","sources":["../../../src/component/type/rooted-component-with-selectors.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,oBAAY,4BAA4B,CAAC,CAAC,SAAS,MAAM,IAAI,eAAe,GAAG;KAC1E,IAAI,IAAI,eAAe,CAAC,CAAC,CAAC,GAAG,cAAc;CAC/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rooted-component-with-selectors.type.js","sourceRoot":"","sources":["../../../src/component/type/rooted-component-with-selectors.type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selector-methods.type.d.ts","sourceRoot":"","sources":["../../../src/component/type/selector-methods.type.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,MAAM,IAAI,MAAM,QAAQ,EAAE,GAAG,GAAG,QAAQ,EAAE,GAAG,KAAK,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selector-methods.type.js","sourceRoot":"","sources":["../../../src/component/type/selector-methods.type.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/// <reference types="webdriverio/async" />
|
|
2
2
|
import type { SetValueArgs, WaitForDisplayedArgs, WaitForEnabledArgs, WaitForExistArgs } from './wdio-types.type';
|
|
3
|
+
import type { Location } from 'webdriverio/build/commands/element/getLocation';
|
|
4
|
+
import type { Size } from 'webdriverio/build/commands/element/getSize';
|
|
3
5
|
export interface SelectorObject {
|
|
4
6
|
byIdx: (idx: number) => Promise<WebdriverIO.Element>;
|
|
5
7
|
click: () => Promise<void>;
|
|
6
8
|
clickByIdx: (idx: number) => Promise<void>;
|
|
7
9
|
el: () => Promise<WebdriverIO.Element>;
|
|
8
10
|
els: () => Promise<WebdriverIO.ElementArray>;
|
|
11
|
+
getLocation: () => Promise<Location>;
|
|
12
|
+
getSize: () => Promise<Size>;
|
|
9
13
|
getText: () => Promise<string>;
|
|
10
14
|
isDisplayed: () => Promise<boolean>;
|
|
11
15
|
isExisting: () => Promise<boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selector-object.type.d.ts","sourceRoot":"","sources":["../../../src/component/type/selector-object.type.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAClH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAC/E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4CAA4C,CAAC;AAGvE,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACrD,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,EAAE,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACvC,GAAG,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAC7C,WAAW,EAAE,MAAM,OAAO,CAAC,QAAQ,CAAC,CAAC;IACrC,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,OAAO,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/B,WAAW,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACpC,UAAU,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACnC,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,gBAAgB,EAAE,CAAC,GAAG,IAAI,EAAE,oBAAoB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnE,cAAc,EAAE,CAAC,GAAG,IAAI,EAAE,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/D,YAAY,EAAE,CAAC,GAAG,IAAI,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9D"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selector-object.type.js","sourceRoot":"","sources":["../../../src/component/type/selector-object.type.ts"],"names":[],"mappings":""}
|
|
@@ -2,4 +2,5 @@ export declare type WaitForDisplayedArgs = Parameters<WebdriverIO.Element['waitF
|
|
|
2
2
|
export declare type WaitForEnabledArgs = Parameters<WebdriverIO.Element['waitForEnabled']>;
|
|
3
3
|
export declare type WaitForExistArgs = Parameters<WebdriverIO.Element['waitForExist']>;
|
|
4
4
|
export declare type SetValueArgs = Parameters<WebdriverIO.Element['setValue']>;
|
|
5
|
+
export declare type ClickArgs = Parameters<WebdriverIO.Element['click']>;
|
|
5
6
|
//# sourceMappingURL=wdio-types.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wdio-types.type.d.ts","sourceRoot":"","sources":["../../../src/component/type/wdio-types.type.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB,GAAG,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC;AACvF,oBAAY,kBAAkB,GAAG,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;AACnF,oBAAY,gBAAgB,GAAG,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;AAC/E,oBAAY,YAAY,GAAG,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;AACvE,oBAAY,SAAS,GAAG,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wdio-types.type.js","sourceRoot":"","sources":["../../../src/component/type/wdio-types.type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-enum-root-selector.util.d.ts","sourceRoot":"","sources":["../../../src/component/util/find-enum-root-selector.util.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC,eAAO,MAAM,oBAAoB,4CAA2C,MAAM,GAAG,SAMpF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findEnumRootSelector = void 0;
|
|
4
|
+
var shared_1 = require("@rnw-community/shared");
|
|
5
|
+
var findEnumRootSelector = function (selectors) {
|
|
6
|
+
var selectorKeys = Object.keys(selectors);
|
|
7
|
+
var rootSelectorKey = selectorKeys.find(function (key) { return key === 'Root'; });
|
|
8
|
+
return (0, shared_1.isDefined)(rootSelectorKey) ? selectors[rootSelectorKey] : undefined;
|
|
9
|
+
};
|
|
10
|
+
exports.findEnumRootSelector = findEnumRootSelector;
|
|
11
|
+
//# sourceMappingURL=find-enum-root-selector.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-enum-root-selector.util.js","sourceRoot":"","sources":["../../../src/component/util/find-enum-root-selector.util.ts"],"names":[],"mappings":";;;AAAA,gDAAkD;AAI3C,IAAM,oBAAoB,GAAG,UAAmB,SAAkB;IACrE,IAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAQ,CAAC;IAEnD,IAAM,eAAe,GAAG,YAAY,CAAC,IAAI,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,KAAK,MAAM,EAAd,CAAc,CAAC,CAAC;IAEjE,OAAO,IAAA,kBAAS,EAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC/E,CAAC,CAAC;AANW,QAAA,oBAAoB,wBAM/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component/util/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findEnumRootSelector = exports.proxyCall = void 0;
|
|
4
|
+
var proxy_call_util_1 = require("./proxy-call.util");
|
|
5
|
+
Object.defineProperty(exports, "proxyCall", { enumerable: true, get: function () { return proxy_call_util_1.proxyCall; } });
|
|
6
|
+
var find_enum_root_selector_util_1 = require("./find-enum-root-selector.util");
|
|
7
|
+
Object.defineProperty(exports, "findEnumRootSelector", { enumerable: true, get: function () { return find_enum_root_selector_util_1.findEnumRootSelector; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/component/util/index.ts"],"names":[],"mappings":";;;AAAA,qDAA8C;AAArC,4GAAA,SAAS,OAAA;AAClB,+EAAsE;AAA7D,oIAAA,oBAAoB,OAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Enum } from '../../type';
|
|
2
|
+
import type { Component } from '../component/component';
|
|
3
|
+
export declare const proxyCall: <E extends string, T extends Component>(client: T, selectors: Enum<E>, field: string) => unknown;
|
|
4
|
+
//# sourceMappingURL=proxy-call.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy-call.util.d.ts","sourceRoot":"","sources":["../../../src/component/util/proxy-call.util.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGxD,eAAO,MAAM,SAAS,gFAAiF,MAAM,KAAG,OAuB/G,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
+
if (ar || !(i in from)) {
|
|
5
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
+
ar[i] = from[i];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.proxyCall = void 0;
|
|
13
|
+
var shared_1 = require("@rnw-community/shared");
|
|
14
|
+
var proxyCall = function (client, selectors, field) {
|
|
15
|
+
var selectorValue = selectors[field];
|
|
16
|
+
if (!(0, shared_1.isDefined)(selectorValue)) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
el: function () { return client.getChildEl(selectorValue); },
|
|
21
|
+
els: function () { return client.getChildEls(selectorValue); },
|
|
22
|
+
byIdx: function (idx) { return client.getChildElByIdx(selectorValue, idx); },
|
|
23
|
+
waitForDisplayed: function () {
|
|
24
|
+
var args = [];
|
|
25
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
26
|
+
args[_i] = arguments[_i];
|
|
27
|
+
}
|
|
28
|
+
return client.waitForDisplayedChildEl.apply(client, __spreadArray([selectorValue], args, false));
|
|
29
|
+
},
|
|
30
|
+
waitForExist: function () {
|
|
31
|
+
var args = [];
|
|
32
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
33
|
+
args[_i] = arguments[_i];
|
|
34
|
+
}
|
|
35
|
+
return client.waitForExistChildEl.apply(client, __spreadArray([selectorValue], args, false));
|
|
36
|
+
},
|
|
37
|
+
waitForEnabled: function () {
|
|
38
|
+
var args = [];
|
|
39
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
40
|
+
args[_i] = arguments[_i];
|
|
41
|
+
}
|
|
42
|
+
return client.waitForEnabledChildEl.apply(client, __spreadArray([selectorValue], args, false));
|
|
43
|
+
},
|
|
44
|
+
setValue: function () {
|
|
45
|
+
var args = [];
|
|
46
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
47
|
+
args[_i] = arguments[_i];
|
|
48
|
+
}
|
|
49
|
+
return client.setValueChildEl.apply(client, __spreadArray([selectorValue], args, false));
|
|
50
|
+
},
|
|
51
|
+
click: function () {
|
|
52
|
+
var args = [];
|
|
53
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
54
|
+
args[_i] = arguments[_i];
|
|
55
|
+
}
|
|
56
|
+
return client.clickChildEl.apply(client, __spreadArray([selectorValue], args, false));
|
|
57
|
+
},
|
|
58
|
+
clickByIdx: function (idx) {
|
|
59
|
+
var args = [];
|
|
60
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
61
|
+
args[_i - 1] = arguments[_i];
|
|
62
|
+
}
|
|
63
|
+
return client.clickByIdxChildEl.apply(client, __spreadArray([selectorValue, idx], args, false));
|
|
64
|
+
},
|
|
65
|
+
getText: function () { return client.getTextChildEl(selectorValue); },
|
|
66
|
+
isDisplayed: function () { return client.isDisplayedChildEl(selectorValue); },
|
|
67
|
+
isExisting: function () { return client.isExistingChildEl(selectorValue); },
|
|
68
|
+
getLocation: function () { return client.getLocationChildEl(selectorValue); },
|
|
69
|
+
getSize: function () { return client.getSizeChildEl(selectorValue); },
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
exports.proxyCall = proxyCall;
|
|
73
|
+
//# sourceMappingURL=proxy-call.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy-call.util.js","sourceRoot":"","sources":["../../../src/component/util/proxy-call.util.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAAkD;AAM3C,IAAM,SAAS,GAAG,UAAwC,MAAS,EAAE,SAAkB,EAAE,KAAa;IACzG,IAAM,aAAa,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;IAEvC,IAAI,CAAC,IAAA,kBAAS,EAAC,aAAa,CAAC,EAAE;QAC3B,OAAO,SAAS,CAAC;KACpB;IAED,OAAO;QACH,EAAE,EAAE,cAAM,OAAA,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,EAAhC,CAAgC;QAC1C,GAAG,EAAE,cAAM,OAAA,MAAM,CAAC,WAAW,CAAC,aAAa,CAAC,EAAjC,CAAiC;QAC5C,KAAK,EAAE,UAAC,GAAW,IAAK,OAAA,MAAM,CAAC,eAAe,CAAC,aAAa,EAAE,GAAG,CAAC,EAA1C,CAA0C;QAClE,gBAAgB,EAAE;YAAC,cAA6B;iBAA7B,UAA6B,EAA7B,qBAA6B,EAA7B,IAA6B;gBAA7B,yBAA6B;;YAAK,OAAA,MAAM,CAAC,uBAAuB,OAA9B,MAAM,iBAAyB,aAAa,GAAK,IAAI;QAArD,CAAsD;QAC3G,YAAY,EAAE;YAAC,cAAyB;iBAAzB,UA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AAM,OAAA,MAAM,CAAC,cAAc,CAAC,aAAa,CAAC,EAApC,CAAoC;KACtD,CAAC;AACN,CAAC,CAAC;AAvBW,QAAA,SAAS,aAuBpB"}
|
package/dist/type/index.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export type { SelectorContextType } from './selector-context.type';
|
|
2
2
|
export type { SwipeDirectionType } from './swipe-direction.type';
|
|
3
|
-
export type { SelectorMethods } from './selector-methods.type';
|
|
4
|
-
export type { ComponentWithSelectors } from './component-with-selectors.type';
|
|
5
|
-
export type { WaitForDisplayedArgs, WaitForEnabledArgs, WaitForExistArgs, SetValueArgs } from './wdio-types.type';
|
|
6
|
-
export type { SelectorObject } from './selector-object.type';
|
|
7
3
|
export type { Enum } from './enum.type';
|
|
8
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/type/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/type/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,YAAY,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/type/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,YAAY,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,YAAY,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rnw-community/wdio",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "WDIO commands, page objects and utils",
|
|
6
6
|
"keywords": [
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"engines": {
|
|
37
37
|
"node": ">=14.0.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "4abd437ab48ac7bf72ea1aa1aaa2db202a5f4d70",
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@rnw-community/shared": "^0.8.0"
|
|
42
42
|
},
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { SelectorMethods } from './selector-methods.type';
|
|
2
|
-
import type { SelectorObject } from './selector-object.type';
|
|
3
|
-
export declare type ComponentWithSelectors<T extends string, TComponent> = TComponent & {
|
|
4
|
-
[TKey in SelectorMethods<T, ''>]: SelectorObject;
|
|
5
|
-
};
|
|
6
|
-
//# sourceMappingURL=component-with-selectors.type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component-with-selectors.type.d.ts","sourceRoot":"","sources":["../../src/type/component-with-selectors.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,oBAAY,sBAAsB,CAAC,CAAC,SAAS,MAAM,EAAE,UAAU,IAAI,UAAU,GAAG;KAC3E,IAAI,IAAI,eAAe,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,cAAc;CACnD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component-with-selectors.type.js","sourceRoot":"","sources":["../../src/type/component-with-selectors.type.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selector-methods.type.d.ts","sourceRoot":"","sources":["../../src/type/selector-methods.type.ts"],"names":[],"mappings":"AAEA,oBAAY,eAAe,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,MAAM,MAAM,IAAI,MAAM,QAAQ,EAAE,GACzG,QAAQ,SAAS,MAAM,GACnB,KAAK,GACL,GAAG,QAAQ,GAAG,CAAC,EAAE,GACrB,KAAK,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selector-methods.type.js","sourceRoot":"","sources":["../../src/type/selector-methods.type.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selector-object.type.d.ts","sourceRoot":"","sources":["../../src/type/selector-object.type.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGlH,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACrD,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,EAAE,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACvC,GAAG,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAC7C,OAAO,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/B,WAAW,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACpC,UAAU,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACnC,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,gBAAgB,EAAE,CAAC,GAAG,IAAI,EAAE,oBAAoB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnE,cAAc,EAAE,CAAC,GAAG,IAAI,EAAE,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/D,YAAY,EAAE,CAAC,GAAG,IAAI,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selector-object.type.js","sourceRoot":"","sources":["../../src/type/selector-object.type.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wdio-types.type.d.ts","sourceRoot":"","sources":["../../src/type/wdio-types.type.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB,GAAG,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC;AACvF,oBAAY,kBAAkB,GAAG,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;AACnF,oBAAY,gBAAgB,GAAG,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;AAC/E,oBAAY,YAAY,GAAG,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wdio-types.type.js","sourceRoot":"","sources":["../../src/type/wdio-types.type.ts"],"names":[],"mappings":""}
|