@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.
Files changed (95) hide show
  1. package/dist/cjs/command/by-index.command.d.ts +3 -0
  2. package/dist/cjs/command/by-index.command.d.ts.map +1 -0
  3. package/dist/cjs/command/by-index.command.js +6 -0
  4. package/dist/cjs/command/by-index.command.js.map +1 -0
  5. package/dist/cjs/command/index.d.ts +1 -1
  6. package/dist/cjs/command/index.d.ts.map +1 -1
  7. package/dist/cjs/command/index.js +3 -3
  8. package/dist/cjs/command/index.js.map +1 -1
  9. package/dist/cjs/command/test-id-index.command.d.ts.map +1 -1
  10. package/dist/cjs/command/test-id-index.command.js +2 -8
  11. package/dist/cjs/command/test-id-index.command.js.map +1 -1
  12. package/dist/cjs/component/component/component.d.ts +5 -16
  13. package/dist/cjs/component/component/component.d.ts.map +1 -1
  14. package/dist/cjs/component/component/component.js +22 -71
  15. package/dist/cjs/component/component/component.js.map +1 -1
  16. package/dist/cjs/component/component/get-exteded-component/get-extended-component.d.ts.map +1 -1
  17. package/dist/cjs/component/component/get-exteded-component/get-extended-component.js.map +1 -1
  18. package/dist/cjs/component/rooted-component/rooted-component.d.ts +4 -9
  19. package/dist/cjs/component/rooted-component/rooted-component.d.ts.map +1 -1
  20. package/dist/cjs/component/rooted-component/rooted-component.js +16 -18
  21. package/dist/cjs/component/rooted-component/rooted-component.js.map +1 -1
  22. package/dist/cjs/component/selector-element/selector-element.d.ts +24 -0
  23. package/dist/cjs/component/selector-element/selector-element.d.ts.map +1 -0
  24. package/dist/cjs/component/selector-element/selector-element.js +47 -0
  25. package/dist/cjs/component/selector-element/selector-element.js.map +1 -0
  26. package/dist/cjs/component/type/component-with-selectors.type.d.ts +2 -2
  27. package/dist/cjs/component/type/component-with-selectors.type.d.ts.map +1 -1
  28. package/dist/cjs/component/type/index.d.ts +0 -2
  29. package/dist/cjs/component/type/index.d.ts.map +1 -1
  30. package/dist/cjs/component/type/rooted-component-with-selectors.type.d.ts +2 -2
  31. package/dist/cjs/component/type/rooted-component-with-selectors.type.d.ts.map +1 -1
  32. package/dist/cjs/index.d.ts +1 -1
  33. package/dist/cjs/index.d.ts.map +1 -1
  34. package/dist/cjs/index.js +1 -1
  35. package/dist/cjs/index.js.map +1 -1
  36. package/dist/esm/command/by-index.command.d.ts +3 -0
  37. package/dist/esm/command/by-index.command.d.ts.map +1 -0
  38. package/dist/esm/command/by-index.command.js +2 -0
  39. package/dist/esm/command/by-index.command.js.map +1 -0
  40. package/dist/esm/command/index.d.ts +1 -1
  41. package/dist/esm/command/index.d.ts.map +1 -1
  42. package/dist/esm/command/index.js +1 -1
  43. package/dist/esm/command/index.js.map +1 -1
  44. package/dist/esm/command/test-id-index.command.d.ts.map +1 -1
  45. package/dist/esm/command/test-id-index.command.js +2 -8
  46. package/dist/esm/command/test-id-index.command.js.map +1 -1
  47. package/dist/esm/component/component/component.d.ts +5 -16
  48. package/dist/esm/component/component/component.d.ts.map +1 -1
  49. package/dist/esm/component/component/component.js +22 -71
  50. package/dist/esm/component/component/component.js.map +1 -1
  51. package/dist/esm/component/component/get-exteded-component/get-extended-component.d.ts.map +1 -1
  52. package/dist/esm/component/component/get-exteded-component/get-extended-component.js.map +1 -1
  53. package/dist/esm/component/rooted-component/rooted-component.d.ts +4 -9
  54. package/dist/esm/component/rooted-component/rooted-component.d.ts.map +1 -1
  55. package/dist/esm/component/rooted-component/rooted-component.js +16 -18
  56. package/dist/esm/component/rooted-component/rooted-component.js.map +1 -1
  57. package/dist/esm/component/selector-element/selector-element.d.ts +24 -0
  58. package/dist/esm/component/selector-element/selector-element.d.ts.map +1 -0
  59. package/dist/esm/component/selector-element/selector-element.js +45 -0
  60. package/dist/esm/component/selector-element/selector-element.js.map +1 -0
  61. package/dist/esm/component/type/component-with-selectors.type.d.ts +2 -2
  62. package/dist/esm/component/type/component-with-selectors.type.d.ts.map +1 -1
  63. package/dist/esm/component/type/index.d.ts +0 -2
  64. package/dist/esm/component/type/index.d.ts.map +1 -1
  65. package/dist/esm/component/type/rooted-component-with-selectors.type.d.ts +2 -2
  66. package/dist/esm/component/type/rooted-component-with-selectors.type.d.ts.map +1 -1
  67. package/dist/esm/index.d.ts +1 -1
  68. package/dist/esm/index.d.ts.map +1 -1
  69. package/dist/esm/index.js +1 -1
  70. package/dist/esm/index.js.map +1 -1
  71. package/package.json +3 -3
  72. package/dist/cjs/command/by-index-command/by-index.command.d.ts +0 -3
  73. package/dist/cjs/command/by-index-command/by-index.command.d.ts.map +0 -1
  74. package/dist/cjs/command/by-index-command/by-index.command.js +0 -12
  75. package/dist/cjs/command/by-index-command/by-index.command.js.map +0 -1
  76. package/dist/cjs/component/type/selector-object.type.d.ts +0 -22
  77. package/dist/cjs/component/type/selector-object.type.d.ts.map +0 -1
  78. package/dist/cjs/component/type/selector-object.type.js +0 -3
  79. package/dist/cjs/component/type/selector-object.type.js.map +0 -1
  80. package/dist/cjs/component/type/wdio-types.type.d.ts +0 -6
  81. package/dist/cjs/component/type/wdio-types.type.d.ts.map +0 -1
  82. package/dist/cjs/component/type/wdio-types.type.js +0 -3
  83. package/dist/cjs/component/type/wdio-types.type.js.map +0 -1
  84. package/dist/esm/command/by-index-command/by-index.command.d.ts +0 -3
  85. package/dist/esm/command/by-index-command/by-index.command.d.ts.map +0 -1
  86. package/dist/esm/command/by-index-command/by-index.command.js +0 -8
  87. package/dist/esm/command/by-index-command/by-index.command.js.map +0 -1
  88. package/dist/esm/component/type/selector-object.type.d.ts +0 -22
  89. package/dist/esm/component/type/selector-object.type.d.ts.map +0 -1
  90. package/dist/esm/component/type/selector-object.type.js +0 -2
  91. package/dist/esm/component/type/selector-object.type.js.map +0 -1
  92. package/dist/esm/component/type/wdio-types.type.d.ts +0 -6
  93. package/dist/esm/component/type/wdio-types.type.d.ts.map +0 -1
  94. package/dist/esm/component/type/wdio-types.type.js +0 -2
  95. package/dist/esm/component/type/wdio-types.type.js.map +0 -1
@@ -1 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,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,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=selector-object.type.js.map
@@ -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,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=wdio-types.type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wdio-types.type.js","sourceRoot":"","sources":["../../../../src/component/type/wdio-types.type.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import type { ElsIndexSelectorFn } from '../../type';
2
- export declare const byIndex$$: ElsIndexSelectorFn;
3
- //# sourceMappingURL=by-index.command.d.ts.map
@@ -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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=selector-object.type.js.map
@@ -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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=wdio-types.type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wdio-types.type.js","sourceRoot":"","sources":["../../../../src/component/type/wdio-types.type.ts"],"names":[],"mappings":""}