@rnw-community/wdio 0.43.2 → 0.44.0
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/cjs/command/by-index.command.d.ts +3 -0
- package/dist/cjs/command/by-index.command.d.ts.map +1 -0
- package/dist/cjs/command/by-index.command.js +6 -0
- package/dist/cjs/command/by-index.command.js.map +1 -0
- package/dist/cjs/command/index.d.ts +1 -1
- package/dist/cjs/command/index.d.ts.map +1 -1
- package/dist/cjs/command/index.js +3 -3
- package/dist/cjs/command/index.js.map +1 -1
- package/dist/cjs/command/test-id-index.command.d.ts.map +1 -1
- package/dist/cjs/command/test-id-index.command.js +2 -8
- package/dist/cjs/command/test-id-index.command.js.map +1 -1
- package/dist/cjs/component/component/component.d.ts +5 -16
- package/dist/cjs/component/component/component.d.ts.map +1 -1
- package/dist/cjs/component/component/component.js +22 -71
- package/dist/cjs/component/component/component.js.map +1 -1
- package/dist/cjs/component/component/get-exteded-component/get-extended-component.d.ts.map +1 -1
- package/dist/cjs/component/component/get-exteded-component/get-extended-component.js.map +1 -1
- package/dist/cjs/component/rooted-component/rooted-component.d.ts +4 -9
- package/dist/cjs/component/rooted-component/rooted-component.d.ts.map +1 -1
- package/dist/cjs/component/rooted-component/rooted-component.js +16 -18
- package/dist/cjs/component/rooted-component/rooted-component.js.map +1 -1
- package/dist/cjs/component/selector-element/selector-element.d.ts +24 -0
- package/dist/cjs/component/selector-element/selector-element.d.ts.map +1 -0
- package/dist/cjs/component/selector-element/selector-element.js +47 -0
- package/dist/cjs/component/selector-element/selector-element.js.map +1 -0
- package/dist/cjs/component/type/component-with-selectors.type.d.ts +2 -2
- package/dist/cjs/component/type/component-with-selectors.type.d.ts.map +1 -1
- package/dist/cjs/component/type/index.d.ts +0 -2
- package/dist/cjs/component/type/index.d.ts.map +1 -1
- package/dist/cjs/component/type/rooted-component-with-selectors.type.d.ts +2 -2
- package/dist/cjs/component/type/rooted-component-with-selectors.type.d.ts.map +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/command/by-index.command.d.ts +3 -0
- package/dist/esm/command/by-index.command.d.ts.map +1 -0
- package/dist/esm/command/by-index.command.js +2 -0
- package/dist/esm/command/by-index.command.js.map +1 -0
- package/dist/esm/command/index.d.ts +1 -1
- package/dist/esm/command/index.d.ts.map +1 -1
- package/dist/esm/command/index.js +1 -1
- package/dist/esm/command/index.js.map +1 -1
- package/dist/esm/command/test-id-index.command.d.ts.map +1 -1
- package/dist/esm/command/test-id-index.command.js +2 -8
- package/dist/esm/command/test-id-index.command.js.map +1 -1
- package/dist/esm/component/component/component.d.ts +5 -16
- package/dist/esm/component/component/component.d.ts.map +1 -1
- package/dist/esm/component/component/component.js +22 -71
- package/dist/esm/component/component/component.js.map +1 -1
- package/dist/esm/component/component/get-exteded-component/get-extended-component.d.ts.map +1 -1
- package/dist/esm/component/component/get-exteded-component/get-extended-component.js.map +1 -1
- package/dist/esm/component/rooted-component/rooted-component.d.ts +4 -9
- package/dist/esm/component/rooted-component/rooted-component.d.ts.map +1 -1
- package/dist/esm/component/rooted-component/rooted-component.js +16 -18
- package/dist/esm/component/rooted-component/rooted-component.js.map +1 -1
- package/dist/esm/component/selector-element/selector-element.d.ts +24 -0
- package/dist/esm/component/selector-element/selector-element.d.ts.map +1 -0
- package/dist/esm/component/selector-element/selector-element.js +45 -0
- package/dist/esm/component/selector-element/selector-element.js.map +1 -0
- package/dist/esm/component/type/component-with-selectors.type.d.ts +2 -2
- package/dist/esm/component/type/component-with-selectors.type.d.ts.map +1 -1
- package/dist/esm/component/type/index.d.ts +0 -2
- package/dist/esm/component/type/index.d.ts.map +1 -1
- package/dist/esm/component/type/rooted-component-with-selectors.type.d.ts +2 -2
- package/dist/esm/component/type/rooted-component-with-selectors.type.d.ts.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/cjs/command/by-index-command/by-index.command.d.ts +0 -3
- package/dist/cjs/command/by-index-command/by-index.command.d.ts.map +0 -1
- package/dist/cjs/command/by-index-command/by-index.command.js +0 -12
- package/dist/cjs/command/by-index-command/by-index.command.js.map +0 -1
- package/dist/cjs/component/type/selector-object.type.d.ts +0 -22
- package/dist/cjs/component/type/selector-object.type.d.ts.map +0 -1
- package/dist/cjs/component/type/selector-object.type.js +0 -3
- package/dist/cjs/component/type/selector-object.type.js.map +0 -1
- package/dist/cjs/component/type/wdio-types.type.d.ts +0 -6
- package/dist/cjs/component/type/wdio-types.type.d.ts.map +0 -1
- package/dist/cjs/component/type/wdio-types.type.js +0 -3
- package/dist/cjs/component/type/wdio-types.type.js.map +0 -1
- package/dist/esm/command/by-index-command/by-index.command.d.ts +0 -3
- package/dist/esm/command/by-index-command/by-index.command.d.ts.map +0 -1
- package/dist/esm/command/by-index-command/by-index.command.js +0 -8
- package/dist/esm/command/by-index-command/by-index.command.js.map +0 -1
- package/dist/esm/component/type/selector-object.type.d.ts +0 -22
- package/dist/esm/component/type/selector-object.type.d.ts.map +0 -1
- package/dist/esm/component/type/selector-object.type.js +0 -2
- package/dist/esm/component/type/selector-object.type.js.map +0 -1
- package/dist/esm/component/type/wdio-types.type.d.ts +0 -6
- package/dist/esm/component/type/wdio-types.type.d.ts.map +0 -1
- package/dist/esm/component/type/wdio-types.type.js +0 -2
- package/dist/esm/component/type/wdio-types.type.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"by-index.command.d.ts","sourceRoot":"","sources":["../../../src/command/by-index.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGlD,eAAO,MAAM,SAAS,EAAE,kBACuD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.byIndex$$ = void 0;
|
|
4
|
+
const byIndex$$ = (selector, index, context = browser) => context.$$(selector)[index];
|
|
5
|
+
exports.byIndex$$ = byIndex$$;
|
|
6
|
+
//# sourceMappingURL=by-index.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"by-index.command.js","sourceRoot":"","sources":["../../../src/command/by-index.command.ts"],"names":[],"mappings":";;;AAGO,MAAM,SAAS,GAAuB,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,EAAE,CAChF,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAiD,CAAC;AADnE,QAAA,SAAS,aAC0D"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { el$ } from './el.command';
|
|
2
2
|
export { els$ } from './els.command';
|
|
3
|
+
export { byIndex$$ } from './by-index.command';
|
|
3
4
|
export { testID$ } from './test-id.command';
|
|
4
5
|
export { testID$$ } from './test-ids.command';
|
|
5
6
|
export { testID$$Index } from './test-id-index.command';
|
|
6
7
|
export { slowInputCommand } from './slow-input.command';
|
|
7
8
|
export { clearInputCommand } from './clear-input.command';
|
|
8
|
-
export { byIndex$$ } from './by-index-command/by-index.command';
|
|
9
9
|
export { openDeepLinkCommand } from './mobile/open-deep-link.command';
|
|
10
10
|
export { relativeClickCommand } from './mobile/relative-click.command';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/command/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/command/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.relativeClickCommand = exports.openDeepLinkCommand = exports.
|
|
3
|
+
exports.relativeClickCommand = exports.openDeepLinkCommand = exports.clearInputCommand = exports.slowInputCommand = exports.testID$$Index = exports.testID$$ = exports.testID$ = exports.byIndex$$ = exports.els$ = exports.el$ = void 0;
|
|
4
4
|
var el_command_1 = require("./el.command");
|
|
5
5
|
Object.defineProperty(exports, "el$", { enumerable: true, get: function () { return el_command_1.el$; } });
|
|
6
6
|
var els_command_1 = require("./els.command");
|
|
7
7
|
Object.defineProperty(exports, "els$", { enumerable: true, get: function () { return els_command_1.els$; } });
|
|
8
|
+
var by_index_command_1 = require("./by-index.command");
|
|
9
|
+
Object.defineProperty(exports, "byIndex$$", { enumerable: true, get: function () { return by_index_command_1.byIndex$$; } });
|
|
8
10
|
var test_id_command_1 = require("./test-id.command");
|
|
9
11
|
Object.defineProperty(exports, "testID$", { enumerable: true, get: function () { return test_id_command_1.testID$; } });
|
|
10
12
|
var test_ids_command_1 = require("./test-ids.command");
|
|
@@ -15,8 +17,6 @@ var slow_input_command_1 = require("./slow-input.command");
|
|
|
15
17
|
Object.defineProperty(exports, "slowInputCommand", { enumerable: true, get: function () { return slow_input_command_1.slowInputCommand; } });
|
|
16
18
|
var clear_input_command_1 = require("./clear-input.command");
|
|
17
19
|
Object.defineProperty(exports, "clearInputCommand", { enumerable: true, get: function () { return clear_input_command_1.clearInputCommand; } });
|
|
18
|
-
var by_index_command_1 = require("./by-index-command/by-index.command");
|
|
19
|
-
Object.defineProperty(exports, "byIndex$$", { enumerable: true, get: function () { return by_index_command_1.byIndex$$; } });
|
|
20
20
|
var open_deep_link_command_1 = require("./mobile/open-deep-link.command");
|
|
21
21
|
Object.defineProperty(exports, "openDeepLinkCommand", { enumerable: true, get: function () { return open_deep_link_command_1.openDeepLinkCommand; } });
|
|
22
22
|
var relative_click_command_1 = require("./mobile/relative-click.command");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/command/index.ts"],"names":[],"mappings":";;;AAAA,2CAAmC;AAA1B,iGAAA,GAAG,OAAA;AACZ,6CAAqC;AAA5B,mGAAA,IAAI,OAAA;AACb,qDAA4C;AAAnC,0GAAA,OAAO,OAAA;AAChB,uDAA8C;AAArC,4GAAA,QAAQ,OAAA;AACjB,iEAAwD;AAA/C,sHAAA,aAAa,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/command/index.ts"],"names":[],"mappings":";;;AAAA,2CAAmC;AAA1B,iGAAA,GAAG,OAAA;AACZ,6CAAqC;AAA5B,mGAAA,IAAI,OAAA;AACb,uDAA+C;AAAtC,6GAAA,SAAS,OAAA;AAElB,qDAA4C;AAAnC,0GAAA,OAAO,OAAA;AAChB,uDAA8C;AAArC,4GAAA,QAAQ,OAAA;AACjB,iEAAwD;AAA/C,sHAAA,aAAa,OAAA;AAEtB,2DAAwD;AAA/C,sHAAA,gBAAgB,OAAA;AACzB,6DAA0D;AAAjD,wHAAA,iBAAiB,OAAA;AAE1B,0EAAsE;AAA7D,6HAAA,mBAAmB,OAAA;AAC5B,0EAAuE;AAA9D,8HAAA,oBAAoB,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-id-index.command.d.ts","sourceRoot":"","sources":["../../../src/command/test-id-index.command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"test-id-index.command.d.ts","sourceRoot":"","sources":["../../../src/command/test-id-index.command.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGlD,eAAO,MAAM,aAAa,EAAE,kBACiE,CAAC"}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.testID$$Index = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const testID$$Index = (testID, index, context = browser) => (0, test_ids_command_1.testID$$)(testID, context).then(elements => {
|
|
7
|
-
if (index >= elements.length || index < 0) {
|
|
8
|
-
throw new Error(`Cannot get item by testID "${testID}" with index "${index}"`);
|
|
9
|
-
}
|
|
10
|
-
return (0, util_1.wdioElementChainByRef)(elements[index]);
|
|
11
|
-
});
|
|
4
|
+
const selector_1 = require("../selector");
|
|
5
|
+
const testID$$Index = (testID, index, context = browser) => context.$$((0, selector_1.testIDSelector)(testID))[index];
|
|
12
6
|
exports.testID$$Index = testID$$Index;
|
|
13
7
|
//# sourceMappingURL=test-id-index.command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-id-index.command.js","sourceRoot":"","sources":["../../../src/command/test-id-index.command.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"test-id-index.command.js","sourceRoot":"","sources":["../../../src/command/test-id-index.command.ts"],"names":[],"mappings":";;;AAAA,0CAA6C;AAKtC,MAAM,aAAa,GAAuB,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,EAAE,CAClF,OAAO,CAAC,EAAE,CAAC,IAAA,yBAAc,EAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAiD,CAAC;AADjF,QAAA,aAAa,iBACoE"}
|
|
@@ -1,30 +1,19 @@
|
|
|
1
1
|
/// <reference types="webdriverio/async" />
|
|
2
2
|
import type { ElSelectorFn, ElsIndexSelectorFn, ElsSelectorFn } from '../../type';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ComponentConfigInterface } from '../type';
|
|
4
|
+
import type { Enum } from '@rnw-community/shared';
|
|
4
5
|
import type { ChainablePromiseArray, ChainablePromiseElement } from 'webdriverio';
|
|
5
|
-
import type { Location } from 'webdriverio/build/commands/element/getLocation';
|
|
6
|
-
import type { Size } from 'webdriverio/build/commands/element/getSize';
|
|
7
6
|
export declare class Component<T = any> {
|
|
8
|
-
selectors: T
|
|
7
|
+
selectors: Enum<T>;
|
|
9
8
|
protected elSelectorFn: ElSelectorFn;
|
|
10
9
|
protected elsSelectorFn: ElsSelectorFn;
|
|
11
10
|
protected elsIndexSelectorFn: ElsIndexSelectorFn;
|
|
12
11
|
protected parentComponents: Component[];
|
|
13
|
-
constructor(config: ComponentConfigInterface, selectors: T);
|
|
12
|
+
constructor(config: ComponentConfigInterface, selectors: Enum<T>);
|
|
14
13
|
addParentComponent(component: Component): void;
|
|
15
|
-
clickChildEl(selector: string, ...args: ClickArgs): Promise<void>;
|
|
16
|
-
clickByIdxChildEl(selector: string, idx: number, ...args: ClickArgs): Promise<void>;
|
|
17
|
-
setValueChildEl(selector: string, ...args: SetValueArgs): Promise<void>;
|
|
18
|
-
isDisplayedChildEl(selector: string): Promise<boolean>;
|
|
19
|
-
isExistingChildEl(selector: string): Promise<boolean>;
|
|
20
|
-
getTextChildEl(selector: string): Promise<string>;
|
|
21
|
-
waitForExistChildEl(selector: string, ...args: WaitForExistArgs): Promise<void>;
|
|
22
|
-
waitForDisplayedChildEl(selector: string, ...args: WaitForDisplayedArgs): Promise<void>;
|
|
23
|
-
waitForEnabledChildEl(selector: string, ...args: WaitForEnabledArgs): Promise<void>;
|
|
24
|
-
getLocationChildEl(selector: string): Promise<Location>;
|
|
25
|
-
getSizeChildEl(selector: string): Promise<Size>;
|
|
26
14
|
getChildEl(selector: string): ChainablePromiseElement<WebdriverIO.Element>;
|
|
27
15
|
getChildEls(selector: string): ChainablePromiseArray<WebdriverIO.ElementArray>;
|
|
28
16
|
getChildElByIdx(selector: string, idx: number): ChainablePromiseElement<WebdriverIO.Element>;
|
|
17
|
+
protected proxyGet(field: string, receiver: unknown): unknown;
|
|
29
18
|
}
|
|
30
19
|
//# 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":["../../../../src/component/component/component.ts"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAClF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAMlF,qBAAa,SAAS,CAAC,CAAC,GAAG,GAAG;IAM2B,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;IALvE,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IACrC,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;IACvC,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IACjD,SAAS,CAAC,gBAAgB,EAAE,SAAS,EAAE,CAAM;gBAEjC,MAAM,EAAE,wBAAwB,EAAS,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;IAavE,kBAAkB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAI9C,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC;IAI1E,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,qBAAqB,CAAC,WAAW,CAAC,YAAY,CAAC;IAI9E,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC;IAI5F,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO;CAoBhE"}
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Component = void 0;
|
|
4
4
|
const shared_1 = require("@rnw-community/shared");
|
|
5
|
+
const selector_element_1 = require("../selector-element/selector-element");
|
|
6
|
+
/*
|
|
7
|
+
* TODO: Fix getLocation|getSize usage to handle both signatures through variable args array
|
|
8
|
+
*/
|
|
5
9
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
10
|
class Component {
|
|
7
11
|
constructor(config, selectors) {
|
|
@@ -13,83 +17,13 @@ class Component {
|
|
|
13
17
|
// eslint-disable-next-line no-constructor-return
|
|
14
18
|
return new Proxy(this, {
|
|
15
19
|
get(client, field, receiver) {
|
|
16
|
-
|
|
17
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
18
|
-
return Reflect.get(client, field, receiver);
|
|
19
|
-
}
|
|
20
|
-
// @ts-expect-error TODO: Can we improve this types? We need this to be T for IDE intellisense support
|
|
21
|
-
const selectorValue = client.selectors[field];
|
|
22
|
-
if (!(0, shared_1.isDefined)(selectorValue)) {
|
|
23
|
-
for (const parentComponent of client.parentComponents) {
|
|
24
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
25
|
-
const parentComponentValue = parentComponent.selectors[field];
|
|
26
|
-
if (field in parentComponent) {
|
|
27
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
28
|
-
return Reflect.get(parentComponent, field, receiver);
|
|
29
|
-
}
|
|
30
|
-
else if ((0, shared_1.isDefined)(parentComponentValue)) {
|
|
31
|
-
// @ts-expect-error TODO: Improve typings and eslint ignores
|
|
32
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
33
|
-
return parentComponent[field];
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return undefined;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
el: () => client.getChildEl(selectorValue),
|
|
40
|
-
els: () => client.getChildEls(selectorValue),
|
|
41
|
-
byIdx: (idx) => client.getChildElByIdx(selectorValue, idx),
|
|
42
|
-
waitForDisplayed: (...args) => client.waitForDisplayedChildEl(selectorValue, ...args),
|
|
43
|
-
waitForExist: (...args) => client.waitForExistChildEl(selectorValue, ...args),
|
|
44
|
-
waitForEnabled: (...args) => client.waitForEnabledChildEl(selectorValue, ...args),
|
|
45
|
-
setValue: (...args) => client.setValueChildEl(selectorValue, ...args),
|
|
46
|
-
click: (...args) => client.clickChildEl(selectorValue, ...args),
|
|
47
|
-
clickByIdx: (idx, ...args) => client.clickByIdxChildEl(selectorValue, idx, ...args),
|
|
48
|
-
getText: () => client.getTextChildEl(selectorValue),
|
|
49
|
-
isDisplayed: () => client.isDisplayedChildEl(selectorValue),
|
|
50
|
-
isExisting: () => client.isExistingChildEl(selectorValue),
|
|
51
|
-
getLocation: () => client.getLocationChildEl(selectorValue),
|
|
52
|
-
getSize: () => client.getSizeChildEl(selectorValue),
|
|
53
|
-
};
|
|
20
|
+
return client.proxyGet(field, receiver);
|
|
54
21
|
},
|
|
55
22
|
});
|
|
56
23
|
}
|
|
57
24
|
addParentComponent(component) {
|
|
58
25
|
this.parentComponents.push(component);
|
|
59
26
|
}
|
|
60
|
-
async clickChildEl(selector, ...args) {
|
|
61
|
-
await (await this.getChildEl(selector)).click(...args);
|
|
62
|
-
}
|
|
63
|
-
async clickByIdxChildEl(selector, idx, ...args) {
|
|
64
|
-
await (await this.getChildElByIdx(selector, idx)).click(...args);
|
|
65
|
-
}
|
|
66
|
-
async setValueChildEl(selector, ...args) {
|
|
67
|
-
await (await this.getChildEl(selector)).setValue(...args);
|
|
68
|
-
}
|
|
69
|
-
async isDisplayedChildEl(selector) {
|
|
70
|
-
return await (await this.getChildEl(selector)).isDisplayed();
|
|
71
|
-
}
|
|
72
|
-
async isExistingChildEl(selector) {
|
|
73
|
-
return await (await this.getChildEl(selector)).isExisting();
|
|
74
|
-
}
|
|
75
|
-
async getTextChildEl(selector) {
|
|
76
|
-
return await (await this.getChildEl(selector)).getText();
|
|
77
|
-
}
|
|
78
|
-
async waitForExistChildEl(selector, ...args) {
|
|
79
|
-
await (await this.getChildEl(selector)).waitForExist(...args);
|
|
80
|
-
}
|
|
81
|
-
async waitForDisplayedChildEl(selector, ...args) {
|
|
82
|
-
await (await this.getChildEl(selector)).waitForDisplayed(...args);
|
|
83
|
-
}
|
|
84
|
-
async waitForEnabledChildEl(selector, ...args) {
|
|
85
|
-
await (await this.getChildEl(selector)).waitForEnabled(...args);
|
|
86
|
-
}
|
|
87
|
-
async getLocationChildEl(selector) {
|
|
88
|
-
return await (await this.getChildEl(selector)).getLocation();
|
|
89
|
-
}
|
|
90
|
-
async getSizeChildEl(selector) {
|
|
91
|
-
return await (await this.getChildEl(selector)).getSize();
|
|
92
|
-
}
|
|
93
27
|
getChildEl(selector) {
|
|
94
28
|
return this.elSelectorFn(selector);
|
|
95
29
|
}
|
|
@@ -99,6 +33,23 @@ class Component {
|
|
|
99
33
|
getChildElByIdx(selector, idx) {
|
|
100
34
|
return this.elsIndexSelectorFn(selector, idx);
|
|
101
35
|
}
|
|
36
|
+
proxyGet(field, receiver) {
|
|
37
|
+
if (Reflect.has(this, field)) {
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
39
|
+
return Reflect.get(this, field, receiver);
|
|
40
|
+
}
|
|
41
|
+
const selector = this.selectors[field];
|
|
42
|
+
if ((0, shared_1.isDefined)(selector)) {
|
|
43
|
+
return new selector_element_1.SelectorElement(this, selector);
|
|
44
|
+
}
|
|
45
|
+
for (const parentComponent of this.parentComponents) {
|
|
46
|
+
if (Reflect.has(parentComponent, field) || field in parentComponent.selectors) {
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
48
|
+
return Reflect.get(parentComponent, field, receiver);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
102
53
|
}
|
|
103
54
|
exports.Component = Component;
|
|
104
55
|
//# sourceMappingURL=component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/component/component/component.ts"],"names":[],"mappings":";;;AAAA,kDAAkD;
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/component/component/component.ts"],"names":[],"mappings":";;;AAAA,kDAAkD;AAElD,2EAAuE;AAOvE;;GAEG;AACH,8DAA8D;AAC9D,MAAa,SAAS;IAMlB,YAAY,MAAgC,EAAS,SAAkB;QAAlB,cAAS,GAAT,SAAS,CAAS;QAF7D,qBAAgB,GAAgB,EAAE,CAAC;QAGzC,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;QACxC,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;QAC1C,IAAI,CAAC,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC;QAEpD,iDAAiD;QACjD,OAAO,IAAI,KAAK,CAAC,IAAI,EAAE;YACnB,GAAG,CAAC,MAA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IACrB,CAAC;CACJ;AAvDD,8BAuDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-extended-component.d.ts","sourceRoot":"","sources":["../../../../../src/component/component/get-exteded-component/get-extended-component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AACvF,OAAO,KAAK,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"get-extended-component.d.ts","sourceRoot":"","sources":["../../../../../src/component/component/get-exteded-component/get-extended-component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AACvF,OAAO,KAAK,EAAE,SAAS,EAAQ,MAAM,uBAAuB,CAAC;AAE7D,eAAO,MAAM,oBAAoB,sFAGrB,wBAAwB,qCAW/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-extended-component.js","sourceRoot":"","sources":["../../../../../src/component/component/get-exteded-component/get-extended-component.ts"],"names":[],"mappings":";;;AAAA,6EAAwE;AACxE,4CAAyC;AAKlC,MAAM,oBAAoB,GAAG,CAChC,SAAY,EACZ,eAA6B,EAC7B,SAAmC,IAAA,iDAAsB,GAAE,EAC3B,EAAE;AAClC,mDAAmD;AACnD,KAAM,SAAQ,qBAAY;IACtB;QACI,KAAK,CAAC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"get-extended-component.js","sourceRoot":"","sources":["../../../../../src/component/component/get-exteded-component/get-extended-component.ts"],"names":[],"mappings":";;;AAAA,6EAAwE;AACxE,4CAAyC;AAKlC,MAAM,oBAAoB,GAAG,CAChC,SAAY,EACZ,eAA6B,EAC7B,SAAmC,IAAA,iDAAsB,GAAE,EAC3B,EAAE;AAClC,mDAAmD;AACnD,KAAM,SAAQ,qBAAY;IACtB;QACI,KAAK,CAAC,MAAM,EAAE,SAA+B,CAAC,CAAC;QAE/C,IAAI,eAAe,KAAK,qBAAS,EAAE;YAC/B,IAAI,CAAC,kBAAkB,CAAC,IAAI,eAAe,EAAE,CAAC,CAAC;SAClD;IACL,CAAC;CACJ,CAAC;AAdO,QAAA,oBAAoB,wBAc3B"}
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
/// <reference types="webdriverio/async" />
|
|
2
2
|
import { Component } from '../component/component';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ComponentConfigInterface, ComponentInputArg } from '../type';
|
|
4
|
+
import type { Enum } from '@rnw-community/shared';
|
|
4
5
|
import type { ChainablePromiseArray, ChainablePromiseElement } from 'webdriverio';
|
|
5
6
|
export declare class RootedComponent<T = any> extends Component<T> {
|
|
6
|
-
selectors: T
|
|
7
|
+
selectors: Enum<T>;
|
|
7
8
|
protected readonly parentElInput: ComponentInputArg;
|
|
8
|
-
constructor(config: ComponentConfigInterface, selectors: T
|
|
9
|
+
constructor(config: ComponentConfigInterface, selectors: Enum<T>, selectorOrElement?: ComponentInputArg | undefined);
|
|
9
10
|
get RootEl(): ChainablePromiseElement<WebdriverIO.Element>;
|
|
10
|
-
waitForDisplayed(...args: WaitForDisplayedArgs): Promise<void>;
|
|
11
|
-
waitForEnabled(...args: WaitForEnabledArgs): Promise<void>;
|
|
12
|
-
waitForExist(...args: WaitForExistArgs): Promise<void>;
|
|
13
|
-
isDisplayed(): Promise<boolean>;
|
|
14
|
-
isExisting(): Promise<boolean>;
|
|
15
|
-
click(...args: ClickArgs): Promise<void>;
|
|
16
11
|
getChildEl(selector: string): ChainablePromiseElement<WebdriverIO.Element>;
|
|
17
12
|
getChildEls(selector: string): ChainablePromiseArray<WebdriverIO.ElementArray>;
|
|
18
13
|
getChildElByIdx(selector: string, idx: number): ChainablePromiseElement<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;AAGnD,OAAO,KAAK,
|
|
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;AAGnD,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC3E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAIlF,qBAAa,eAAe,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IAKlC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;IAJtC,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,iBAAiB,CAAC;gBAGhD,MAAM,EAAE,wBAAwB,EAChB,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,EAClC,iBAAiB,GAAE,iBAAiB,GAAG,SAA2C;IA8BtF,IAAI,MAAM,IAAI,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC,CAQzD;IAEQ,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC;IAI1E,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,qBAAqB,CAAC,WAAW,CAAC,YAAY,CAAC;IAI9E,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC;CAGxG"}
|
|
@@ -5,6 +5,7 @@ const shared_1 = require("@rnw-community/shared");
|
|
|
5
5
|
const util_1 = require("../../util");
|
|
6
6
|
const component_1 = require("../component/component");
|
|
7
7
|
const util_2 = require("../util");
|
|
8
|
+
// TODO: All Root should have all methods from wdio element, can we do this through the proxy?
|
|
8
9
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9
10
|
class RootedComponent extends component_1.Component {
|
|
10
11
|
constructor(config, selectors, selectorOrElement = (0, util_2.findEnumRootSelector)(selectors)) {
|
|
@@ -14,6 +15,21 @@ class RootedComponent extends component_1.Component {
|
|
|
14
15
|
super(config, selectors);
|
|
15
16
|
this.selectors = selectors;
|
|
16
17
|
this.parentElInput = selectorOrElement;
|
|
18
|
+
// eslint-disable-next-line no-constructor-return
|
|
19
|
+
return new Proxy(this, {
|
|
20
|
+
get(client, field, receiver) {
|
|
21
|
+
const returnValue = client.proxyGet(field, receiver);
|
|
22
|
+
if (returnValue !== undefined) {
|
|
23
|
+
return returnValue;
|
|
24
|
+
}
|
|
25
|
+
const rootEl = client.RootEl;
|
|
26
|
+
if ((0, shared_1.isDefined)(rootEl) && Reflect.has(rootEl, field)) {
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
28
|
+
return Reflect.get(rootEl, field, receiver);
|
|
29
|
+
}
|
|
30
|
+
throw new Error(`Method/Property "${field}" is not supported by RootedComponent`);
|
|
31
|
+
},
|
|
32
|
+
});
|
|
17
33
|
}
|
|
18
34
|
get RootEl() {
|
|
19
35
|
if ((0, shared_1.isNotEmptyString)(this.parentElInput)) {
|
|
@@ -24,24 +40,6 @@ class RootedComponent extends component_1.Component {
|
|
|
24
40
|
}
|
|
25
41
|
return (0, util_1.wdioElementChainByRef)(this.parentElInput);
|
|
26
42
|
}
|
|
27
|
-
async waitForDisplayed(...args) {
|
|
28
|
-
await (await this.RootEl).waitForDisplayed(...args);
|
|
29
|
-
}
|
|
30
|
-
async waitForEnabled(...args) {
|
|
31
|
-
await (await this.RootEl).waitForEnabled(...args);
|
|
32
|
-
}
|
|
33
|
-
async waitForExist(...args) {
|
|
34
|
-
await (await this.RootEl).waitForExist(...args);
|
|
35
|
-
}
|
|
36
|
-
async isDisplayed() {
|
|
37
|
-
return await (await this.RootEl).isDisplayed();
|
|
38
|
-
}
|
|
39
|
-
async isExisting() {
|
|
40
|
-
return await (await this.RootEl).isExisting();
|
|
41
|
-
}
|
|
42
|
-
async click(...args) {
|
|
43
|
-
await (await this.RootEl).click(...args);
|
|
44
|
-
}
|
|
45
43
|
getChildEl(selector) {
|
|
46
44
|
return this.elSelectorFn(selector, this.RootEl);
|
|
47
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rooted-component.js","sourceRoot":"","sources":["../../../../src/component/rooted-component/rooted-component.ts"],"names":[],"mappings":";;;AAAA,kDAAoE;AAEpE,qCAAmD;AACnD,sDAAmD;AACnD,kCAA+C;
|
|
1
|
+
{"version":3,"file":"rooted-component.js","sourceRoot":"","sources":["../../../../src/component/rooted-component/rooted-component.ts"],"names":[],"mappings":";;;AAAA,kDAAoE;AAEpE,qCAAmD;AACnD,sDAAmD;AACnD,kCAA+C;AAM/C,8FAA8F;AAC9F,8DAA8D;AAC9D,MAAa,eAAyB,SAAQ,qBAAY;IAGtD,YACI,MAAgC,EAChB,SAAkB,EAClC,oBAAmD,IAAA,2BAAoB,EAAC,SAAS,CAAC;QAElF,IAAI,CAAC,IAAA,kBAAS,EAAC,iBAAiB,CAAC,EAAE;YAC/B,MAAM,IAAI,KAAK,CAAC,kFAAkF,CAAC,CAAC;SACvG;QAED,KAAK,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAPT,cAAS,GAAT,SAAS,CAAS;QASlC,IAAI,CAAC,aAAa,GAAG,iBAAiB,CAAC;QAEvC,iDAAiD;QACjD,OAAO,IAAI,KAAK,CAAC,IAAI,EAAE;YACnB,GAAG,CAAC,MAAM,EAAE,KAAa,EAAE,QAAQ;gBAC/B,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;gBAErD,I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/component';
|
|
3
|
+
import type { ChainablePromiseArray, ChainablePromiseElement } from 'webdriverio';
|
|
4
|
+
/**
|
|
5
|
+
* WDIO element wrapper witch additional methods supporting chaining.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SelectorElement {
|
|
8
|
+
private readonly component;
|
|
9
|
+
private readonly enumSelector;
|
|
10
|
+
constructor(component: Component, enumSelector: string);
|
|
11
|
+
/**
|
|
12
|
+
* Get Promise that will fetch and return WDIO element
|
|
13
|
+
*/
|
|
14
|
+
el(): ChainablePromiseElement<WebdriverIO.Element>;
|
|
15
|
+
/**
|
|
16
|
+
* Get Promise that will fetch and return WDIO elements array
|
|
17
|
+
*/
|
|
18
|
+
els(): ChainablePromiseArray<WebdriverIO.ElementArray>;
|
|
19
|
+
/**
|
|
20
|
+
* Get Promise that will fetch and return WDIO elements array item by index
|
|
21
|
+
*/
|
|
22
|
+
byIdx(idx: number): ChainablePromiseElement<WebdriverIO.Element>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=selector-element.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selector-element.d.ts","sourceRoot":"","sources":["../../../../src/component/selector-element/selector-element.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAElF;;GAEG;AACH,qBAAa,eAAe;IACZ,OAAO,CAAC,QAAQ,CAAC,SAAS;IAAa,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAnD,SAAS,EAAE,SAAS,EAAmB,YAAY,EAAE,MAAM;IAoBxF;;OAEG;IACH,EAAE,IAAI,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC;IAIlD;;OAEG;IACH,GAAG,IAAI,qBAAqB,CAAC,WAAW,CAAC,YAAY,CAAC;IAItD;;OAEG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC;CAGnE"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SelectorElement = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* WDIO element wrapper witch additional methods supporting chaining.
|
|
6
|
+
*/
|
|
7
|
+
class SelectorElement {
|
|
8
|
+
constructor(component, enumSelector) {
|
|
9
|
+
this.component = component;
|
|
10
|
+
this.enumSelector = enumSelector;
|
|
11
|
+
// eslint-disable-next-line no-constructor-return
|
|
12
|
+
return new Proxy(this, {
|
|
13
|
+
get(client, field, receiver) {
|
|
14
|
+
if (Reflect.has(client, field)) {
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
16
|
+
return Reflect.get(client, field, receiver);
|
|
17
|
+
}
|
|
18
|
+
const element = component.getChildEl(enumSelector);
|
|
19
|
+
if (Reflect.has(element, field)) {
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
21
|
+
return Reflect.get(element, field, receiver);
|
|
22
|
+
}
|
|
23
|
+
throw new Error(`Method/Property "${field}" is not supported by SelectorElement(${enumSelector})`);
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get Promise that will fetch and return WDIO element
|
|
29
|
+
*/
|
|
30
|
+
el() {
|
|
31
|
+
return this.component.getChildEl(this.enumSelector);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Get Promise that will fetch and return WDIO elements array
|
|
35
|
+
*/
|
|
36
|
+
els() {
|
|
37
|
+
return this.component.getChildEls(this.enumSelector);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Get Promise that will fetch and return WDIO elements array item by index
|
|
41
|
+
*/
|
|
42
|
+
byIdx(idx) {
|
|
43
|
+
return this.component.getChildElByIdx(this.enumSelector, idx);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.SelectorElement = SelectorElement;
|
|
47
|
+
//# sourceMappingURL=selector-element.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selector-element.js","sourceRoot":"","sources":["../../../../src/component/selector-element/selector-element.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACH,MAAa,eAAe;IACxB,YAA6B,SAAoB,EAAmB,YAAoB;QAA3D,cAAS,GAAT,SAAS,CAAW;QAAmB,iBAAY,GAAZ,YAAY,CAAQ;QACpF,iDAAiD;QACjD,OAAO,IAAI,KAAK,CAAC,IAAI,EAAE;YACnB,GAAG,CAAC,MAAM,EAAE,KAAa,EAAE,QAAQ;gBAC/B,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE;oBAC5B,+DAA+D;oBAC/D,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;iBAC/C;gBAED,MAAM,OAAO,GAAG,SAAS,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;gBACnD,IAAI,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE;oBAC7B,+DAA+D;oBAC/D,OAAO,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;iBAChD;gBAED,MAAM,IAAI,KAAK,CAAC,oBAAoB,KAAK,yCAAyC,YAAY,GAAG,CAAC,CAAC;YACvG,CAAC;SACJ,CAAC,CAAC;IACP,CAAC;IAED;;OAEG;IACH,EAAE;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,GAAG;QACC,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,GAAW;QACb,OAAO,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;IAClE,CAAC;CACJ;AAzCD,0CAyCC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Component } from '../component/component';
|
|
2
|
-
import type {
|
|
3
|
-
export declare type ComponentWithSelectors<T> = Component<T> & Record<keyof T,
|
|
2
|
+
import type { SelectorElement } from '../selector-element/selector-element';
|
|
3
|
+
export declare type ComponentWithSelectors<T> = Component<T> & Record<keyof T, SelectorElement & WebdriverIO.Element>;
|
|
4
4
|
//# sourceMappingURL=component-with-selectors.type.d.ts.map
|
|
@@ -1 +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,
|
|
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,sCAAsC,CAAC;AAE5E,oBAAY,sBAAsB,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,eAAe,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export type { ComponentWithSelectors } from './component-with-selectors.type';
|
|
2
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 { SelectorObject } from './selector-object.type';
|
|
5
3
|
export type { ComponentInputArg } from './component-input-arg.type';
|
|
6
4
|
export type { ComponentWithSelectorsCtor } from './component-with-selectors-ctor.type';
|
|
7
5
|
export type { RootedComponentWithSelectorsCtor } from './rooted-component-with-selectors-ctor.type';
|
|
@@ -1 +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,
|
|
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,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,YAAY,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AACvF,YAAY,EAAE,gCAAgC,EAAE,MAAM,6CAA6C,CAAC;AACpG,YAAY,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAC5E,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { RootedComponent } from '../rooted-component/rooted-component';
|
|
2
|
-
import type {
|
|
3
|
-
export declare type RootedComponentWithSelectors<T> = Omit<Record<keyof T,
|
|
2
|
+
import type { SelectorElement } from '../selector-element/selector-element';
|
|
3
|
+
export declare type RootedComponentWithSelectors<T> = Omit<Record<keyof T, SelectorElement & WebdriverIO.Element>, 'Root'> & RootedComponent<T>;
|
|
4
4
|
//# sourceMappingURL=rooted-component-with-selectors.type.d.ts.map
|
|
@@ -1 +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,
|
|
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,sCAAsC,CAAC;AAE5E,oBAAY,4BAA4B,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,eAAe,GAAG,WAAW,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,GAC9G,eAAe,CAAC,CAAC,CAAC,CAAC"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export { testID$$ } from './command/test-ids.command';
|
|
|
22
22
|
export { testID$$Index } from './command/test-id-index.command';
|
|
23
23
|
export { slowInputCommand } from './command/slow-input.command';
|
|
24
24
|
export { clearInputCommand } from './command/clear-input.command';
|
|
25
|
-
export { byIndex$$ } from './command/by-index
|
|
25
|
+
export { byIndex$$ } from './command/by-index.command';
|
|
26
26
|
export { openDeepLinkCommand } from './command/mobile/open-deep-link.command';
|
|
27
27
|
export { relativeClickCommand } from './command/mobile/relative-click.command';
|
|
28
28
|
export { Component } from './component/component/component';
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACxE,YAAY,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,YAAY,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,YAAY,EAAE,aAA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,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAE/E,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oEAAoE,CAAC;AAC1G,OAAO,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,qDAAqD,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,yDAAyD,CAAC;AAC1F,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAE7F,OAAO,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,0FAA0F,CAAC;AACtI,OAAO,EAAE,kBAAkB,EAAE,MAAM,wEAAwE,CAAC;AAC5G,OAAO,EAAE,mBAAmB,EAAE,MAAM,0EAA0E,CAAC;AAC/G,OAAO,EAAE,qBAAqB,EAAE,MAAM,8EAA8E,CAAC;AACrH,OAAO,EAAE,sBAAsB,EAAE,MAAM,gFAAgF,CAAC;AAExH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var slow_input_command_1 = require("./command/slow-input.command");
|
|
|
33
33
|
Object.defineProperty(exports, "slowInputCommand", { enumerable: true, get: function () { return slow_input_command_1.slowInputCommand; } });
|
|
34
34
|
var clear_input_command_1 = require("./command/clear-input.command");
|
|
35
35
|
Object.defineProperty(exports, "clearInputCommand", { enumerable: true, get: function () { return clear_input_command_1.clearInputCommand; } });
|
|
36
|
-
var by_index_command_1 = require("./command/by-index
|
|
36
|
+
var by_index_command_1 = require("./command/by-index.command");
|
|
37
37
|
Object.defineProperty(exports, "byIndex$$", { enumerable: true, get: function () { return by_index_command_1.byIndex$$; } });
|
|
38
38
|
var open_deep_link_command_1 = require("./command/mobile/open-deep-link.command");
|
|
39
39
|
Object.defineProperty(exports, "openDeepLinkCommand", { enumerable: true, get: function () { return open_deep_link_command_1.openDeepLinkCommand; } });
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAUA,8EAA2E;AAAlE,gIAAA,qBAAqB,OAAA;AAC9B,sEAAmE;AAA1D,wHAAA,iBAAiB,OAAA;AAC1B,4EAAyE;AAAhE,8HAAA,oBAAoB,OAAA;AAC7B,sEAAmE;AAA1D,wHAAA,iBAAiB,OAAA;AAC1B,gEAA6D;AAApD,kHAAA,cAAc,OAAA;AAEvB,8DAA2D;AAAlD,wGAAA,SAAS,OAAA;AAClB,8DAA2D;AAAlD,wGAAA,SAAS,OAAA;AAClB,6EAAyE;AAAhE,iHAAA,aAAa,OAAA;AAEtB,4EAAyE;AAAhE,4HAAA,mBAAmB,OAAA;AAC5B,4EAAyE;AAAhE,4HAAA,mBAAmB,OAAA;AAC5B,oEAAiE;AAAxD,oHAAA,eAAe,OAAA;AAExB,6DAAoD;AAA3C,0GAAA,OAAO,OAAA;AAChB,+DAAsD;AAA7C,4GAAA,QAAQ,OAAA;AACjB,yEAAgE;AAAvD,sHAAA,aAAa,OAAA;AACtB,mEAAgE;AAAvD,sHAAA,gBAAgB,OAAA;AACzB,qEAAkE;AAAzD,wHAAA,iBAAiB,OAAA;AAC1B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAUA,8EAA2E;AAAlE,gIAAA,qBAAqB,OAAA;AAC9B,sEAAmE;AAA1D,wHAAA,iBAAiB,OAAA;AAC1B,4EAAyE;AAAhE,8HAAA,oBAAoB,OAAA;AAC7B,sEAAmE;AAA1D,wHAAA,iBAAiB,OAAA;AAC1B,gEAA6D;AAApD,kH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ourceRoot":"","sources":["../../../src/command/by-index.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGlD,eAAO,MAAM,SAAS,EAAE,kBACuD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"by-index.command.js","sourceRoot":"","sources":["../../../src/command/by-index.command.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,SAAS,GAAuB,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,EAAE,CAChF,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAiD,CAAC"}
|