@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
|
@@ -1 +0,0 @@
|
|
|
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,qBAAqB,EA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.js","sourceRoot":"","sources":["../../../../src/component/type/selector-object.type.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare type WaitForDisplayedArgs = Parameters<WebdriverIO.Element['waitForDisplayed']>;
|
|
2
|
-
export declare type WaitForEnabledArgs = Parameters<WebdriverIO.Element['waitForEnabled']>;
|
|
3
|
-
export declare type WaitForExistArgs = Parameters<WebdriverIO.Element['waitForExist']>;
|
|
4
|
-
export declare type SetValueArgs = Parameters<WebdriverIO.Element['setValue']>;
|
|
5
|
-
export declare type ClickArgs = Parameters<WebdriverIO.Element['click']>;
|
|
6
|
-
//# sourceMappingURL=wdio-types.type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wdio-types.type.js","sourceRoot":"","sources":["../../../../src/component/type/wdio-types.type.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"by-index.command.d.ts","sourceRoot":"","sources":["../../../../src/command/by-index-command/by-index.command.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAGrD,eAAO,MAAM,SAAS,EAAE,kBAO8B,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { wdioElementChainByRef } from '../../util';
|
|
2
|
-
export const byIndex$$ = (selector, index, context = browser) => context.$$(selector).then(elements => {
|
|
3
|
-
if (index >= elements.length || index < 0) {
|
|
4
|
-
throw new Error(`Cannot get item by $$ "${selector}" with index "${index}"`);
|
|
5
|
-
}
|
|
6
|
-
return wdioElementChainByRef(elements[index]);
|
|
7
|
-
});
|
|
8
|
-
//# sourceMappingURL=by-index.command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"by-index.command.js","sourceRoot":"","sources":["../../../../src/command/by-index-command/by-index.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAKnD,MAAM,CAAC,MAAM,SAAS,GAAuB,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,EAAE,CAChF,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;IACjC,IAAI,KAAK,IAAI,QAAQ,CAAC,MAAM,IAAI,KAAK,GAAG,CAAC,EAAE;QACvC,MAAM,IAAI,KAAK,CAAC,0BAA0B,QAAQ,iBAAiB,KAAK,GAAG,CAAC,CAAC;KAChF;IAED,OAAO,qBAAqB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;AAClD,CAAC,CAAiD,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="webdriverio/async" />
|
|
2
|
-
import type { SetValueArgs, WaitForDisplayedArgs, WaitForEnabledArgs, WaitForExistArgs } from './wdio-types.type';
|
|
3
|
-
import type { ChainablePromiseArray, ChainablePromiseElement } from 'webdriverio';
|
|
4
|
-
import type { Location } from 'webdriverio/build/commands/element/getLocation';
|
|
5
|
-
import type { Size } from 'webdriverio/build/commands/element/getSize';
|
|
6
|
-
export interface SelectorObject {
|
|
7
|
-
byIdx: (idx: number) => ChainablePromiseElement<WebdriverIO.Element>;
|
|
8
|
-
click: () => Promise<void>;
|
|
9
|
-
clickByIdx: (idx: number) => Promise<void>;
|
|
10
|
-
el: () => ChainablePromiseElement<WebdriverIO.Element>;
|
|
11
|
-
els: () => ChainablePromiseArray<WebdriverIO.ElementArray>;
|
|
12
|
-
getLocation: () => Promise<Location>;
|
|
13
|
-
getSize: () => Promise<Size>;
|
|
14
|
-
getText: () => Promise<string>;
|
|
15
|
-
isDisplayed: () => Promise<boolean>;
|
|
16
|
-
isExisting: () => Promise<boolean>;
|
|
17
|
-
setValue: (...args: SetValueArgs) => Promise<void>;
|
|
18
|
-
waitForDisplayed: (...args: WaitForDisplayedArgs) => Promise<void>;
|
|
19
|
-
waitForEnabled: (...args: WaitForEnabledArgs) => Promise<void>;
|
|
20
|
-
waitForExist: (...args: WaitForExistArgs) => Promise<void>;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=selector-object.type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAClF,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,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACrE,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,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACvD,GAAG,EAAE,MAAM,qBAAqB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAC3D,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selector-object.type.js","sourceRoot":"","sources":["../../../../src/component/type/selector-object.type.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare type WaitForDisplayedArgs = Parameters<WebdriverIO.Element['waitForDisplayed']>;
|
|
2
|
-
export declare type WaitForEnabledArgs = Parameters<WebdriverIO.Element['waitForEnabled']>;
|
|
3
|
-
export declare type WaitForExistArgs = Parameters<WebdriverIO.Element['waitForExist']>;
|
|
4
|
-
export declare type SetValueArgs = Parameters<WebdriverIO.Element['setValue']>;
|
|
5
|
-
export declare type ClickArgs = Parameters<WebdriverIO.Element['click']>;
|
|
6
|
-
//# sourceMappingURL=wdio-types.type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wdio-types.type.js","sourceRoot":"","sources":["../../../../src/component/type/wdio-types.type.ts"],"names":[],"mappings":""}
|