@appium/universal-xml-plugin 2.0.4 → 2.1.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/LICENSE +201 -0
- package/build/lib/attr-map.d.ts +3 -57
- package/build/lib/attr-map.d.ts.map +1 -1
- package/build/lib/attr-map.js +2 -5
- package/build/lib/attr-map.js.map +1 -1
- package/build/lib/index.d.ts +4 -3
- package/build/lib/index.d.ts.map +1 -1
- package/build/lib/index.js +20 -5
- package/build/lib/index.js.map +1 -1
- package/build/lib/node-map.d.ts +3 -199
- package/build/lib/node-map.d.ts.map +1 -1
- package/build/lib/node-map.js +2 -9
- package/build/lib/node-map.js.map +1 -1
- package/build/lib/plugin.d.ts +7 -6
- package/build/lib/plugin.d.ts.map +1 -1
- package/build/lib/plugin.js +16 -18
- package/build/lib/plugin.js.map +1 -1
- package/build/lib/source.d.ts +41 -47
- package/build/lib/source.d.ts.map +1 -1
- package/build/lib/source.js +104 -47
- package/build/lib/source.js.map +1 -1
- package/build/lib/transformers.d.ts +3 -7
- package/build/lib/transformers.d.ts.map +1 -1
- package/build/lib/transformers.js +9 -10
- package/build/lib/transformers.js.map +1 -1
- package/build/lib/types.d.ts +29 -0
- package/build/lib/types.d.ts.map +1 -0
- package/build/lib/types.js +3 -0
- package/build/lib/types.js.map +1 -0
- package/build/lib/xpath.d.ts +16 -7
- package/build/lib/xpath.d.ts.map +1 -1
- package/build/lib/xpath.js +19 -16
- package/build/lib/xpath.js.map +1 -1
- package/lib/{attr-map.js → attr-map.ts} +5 -5
- package/lib/{index.js → index.ts} +22 -4
- package/lib/{node-map.js → node-map.ts} +5 -1
- package/lib/plugin.ts +119 -0
- package/lib/source.ts +265 -0
- package/lib/{transformers.js → transformers.ts} +9 -12
- package/lib/types.ts +33 -0
- package/lib/{xpath.js → xpath.ts} +24 -20
- package/package.json +7 -7
- package/tsconfig.json +3 -2
- package/build/lib/logger.d.ts +0 -3
- package/build/lib/logger.d.ts.map +0 -1
- package/build/lib/logger.js +0 -6
- package/build/lib/logger.js.map +0 -1
- package/index.js +0 -7
- package/lib/logger.js +0 -3
- package/lib/plugin.js +0 -81
- package/lib/source.js +0 -226
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/build/lib/attr-map.d.ts
CHANGED
|
@@ -1,58 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let android: string;
|
|
5
|
-
}
|
|
6
|
-
namespace y {
|
|
7
|
-
let ios_1: string;
|
|
8
|
-
export { ios_1 as ios };
|
|
9
|
-
let android_1: string;
|
|
10
|
-
export { android_1 as android };
|
|
11
|
-
}
|
|
12
|
-
namespace width {
|
|
13
|
-
let ios_2: string;
|
|
14
|
-
export { ios_2 as ios };
|
|
15
|
-
let android_2: string;
|
|
16
|
-
export { android_2 as android };
|
|
17
|
-
}
|
|
18
|
-
namespace height {
|
|
19
|
-
let ios_3: string;
|
|
20
|
-
export { ios_3 as ios };
|
|
21
|
-
let android_3: string;
|
|
22
|
-
export { android_3 as android };
|
|
23
|
-
}
|
|
24
|
-
namespace enabled {
|
|
25
|
-
let ios_4: string;
|
|
26
|
-
export { ios_4 as ios };
|
|
27
|
-
let android_4: string;
|
|
28
|
-
export { android_4 as android };
|
|
29
|
-
}
|
|
30
|
-
namespace axId {
|
|
31
|
-
let ios_5: string;
|
|
32
|
-
export { ios_5 as ios };
|
|
33
|
-
let android_5: string;
|
|
34
|
-
export { android_5 as android };
|
|
35
|
-
}
|
|
36
|
-
namespace id {
|
|
37
|
-
let android_6: string;
|
|
38
|
-
export { android_6 as android };
|
|
39
|
-
}
|
|
40
|
-
namespace text {
|
|
41
|
-
let ios_6: string;
|
|
42
|
-
export { ios_6 as ios };
|
|
43
|
-
let android_7: string;
|
|
44
|
-
export { android_7 as android };
|
|
45
|
-
}
|
|
46
|
-
namespace visible {
|
|
47
|
-
let ios_7: string;
|
|
48
|
-
export { ios_7 as ios };
|
|
49
|
-
let android_8: string;
|
|
50
|
-
export { android_8 as android };
|
|
51
|
-
}
|
|
52
|
-
namespace value {
|
|
53
|
-
let ios_8: string;
|
|
54
|
-
export { ios_8 as ios };
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
export const REMOVE_ATTRS: string[];
|
|
1
|
+
import type { UniversalNameMap } from './types';
|
|
2
|
+
export declare const ATTR_MAP: UniversalNameMap;
|
|
3
|
+
export declare const REMOVE_ATTRS: readonly ["index", "type", "package", "class", "checkable", "checked", "clickable", "enabled", "focusable", "focused", "long-clickable", "password", "scrollable", "selected", "bounds", "rotation"];
|
|
58
4
|
//# sourceMappingURL=attr-map.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attr-map.d.ts","sourceRoot":"","sources":["../../lib/attr-map.
|
|
1
|
+
{"version":3,"file":"attr-map.d.ts","sourceRoot":"","sources":["../../lib/attr-map.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,QAAQ,EAAE,gBAWtB,CAAC;AAGF,eAAO,MAAM,YAAY,sMAiBf,CAAC"}
|
package/build/lib/attr-map.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.REMOVE_ATTRS = exports.ATTR_MAP = void 0;
|
|
4
|
-
|
|
5
|
-
const ATTR_MAP = {
|
|
4
|
+
exports.ATTR_MAP = {
|
|
6
5
|
x: { ios: 'x', android: 'x' },
|
|
7
6
|
y: { ios: 'y', android: 'y' },
|
|
8
7
|
width: { ios: 'width', android: 'width' },
|
|
@@ -14,9 +13,8 @@ const ATTR_MAP = {
|
|
|
14
13
|
visible: { ios: 'visible', android: 'displayed' },
|
|
15
14
|
value: { ios: 'value' },
|
|
16
15
|
};
|
|
17
|
-
exports.ATTR_MAP = ATTR_MAP;
|
|
18
16
|
// these attributes shouldn't be mapped and should instead just be removed
|
|
19
|
-
|
|
17
|
+
exports.REMOVE_ATTRS = [
|
|
20
18
|
'index',
|
|
21
19
|
'type',
|
|
22
20
|
'package',
|
|
@@ -34,5 +32,4 @@ const REMOVE_ATTRS = [
|
|
|
34
32
|
'bounds',
|
|
35
33
|
'rotation',
|
|
36
34
|
];
|
|
37
|
-
exports.REMOVE_ATTRS = REMOVE_ATTRS;
|
|
38
35
|
//# sourceMappingURL=attr-map.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attr-map.js","sourceRoot":"","sources":["../../lib/attr-map.
|
|
1
|
+
{"version":3,"file":"attr-map.js","sourceRoot":"","sources":["../../lib/attr-map.ts"],"names":[],"mappings":";;;AAGa,QAAA,QAAQ,GAAqB;IACxC,CAAC,EAAE,EAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAC;IAC3B,CAAC,EAAE,EAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAC;IAC3B,KAAK,EAAE,EAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAC;IACvC,MAAM,EAAE,EAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAC;IAC1C,OAAO,EAAE,EAAC,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAC;IAC7C,IAAI,EAAE,EAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAC;IAC5C,EAAE,EAAE,EAAC,OAAO,EAAE,aAAa,EAAC;IAC5B,IAAI,EAAE,EAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAC;IACrC,OAAO,EAAE,EAAC,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAC;IAC/C,KAAK,EAAE,EAAC,GAAG,EAAE,OAAO,EAAC;CACtB,CAAC;AAEF,0EAA0E;AAC7D,QAAA,YAAY,GAAG;IAC1B,OAAO;IACP,MAAM;IACN,SAAS;IACT,OAAO;IACP,WAAW;IACX,SAAS;IACT,WAAW;IACX,SAAS;IACT,WAAW;IACX,SAAS;IACT,gBAAgB;IAChB,UAAU;IACV,YAAY;IACZ,UAAU;IACV,QAAQ;IACR,UAAU;CACF,CAAC"}
|
package/build/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export { UniversalXMLPlugin };
|
|
1
|
+
export { UniversalXMLPlugin } from './plugin';
|
|
2
|
+
export { transformSourceXml } from './source';
|
|
4
3
|
import { UniversalXMLPlugin } from './plugin';
|
|
4
|
+
export default UniversalXMLPlugin;
|
|
5
|
+
export declare function main(): Promise<void>;
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
package/build/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAC,kBAAkB,EAAC,MAAM,UAAU,CAAC;AAG5C,OAAO,EAAC,kBAAkB,EAAC,MAAM,UAAU,CAAC;AAE5C,eAAe,kBAAkB,CAAC;AAElC,wBAAsB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAqB1C"}
|
package/build/lib/index.js
CHANGED
|
@@ -3,21 +3,36 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UniversalXMLPlugin = void 0;
|
|
6
|
+
exports.transformSourceXml = exports.UniversalXMLPlugin = void 0;
|
|
7
7
|
exports.main = main;
|
|
8
|
-
|
|
8
|
+
var plugin_1 = require("./plugin");
|
|
9
9
|
Object.defineProperty(exports, "UniversalXMLPlugin", { enumerable: true, get: function () { return plugin_1.UniversalXMLPlugin; } });
|
|
10
|
-
|
|
10
|
+
var source_1 = require("./source");
|
|
11
|
+
Object.defineProperty(exports, "transformSourceXml", { enumerable: true, get: function () { return source_1.transformSourceXml; } });
|
|
11
12
|
const promises_1 = __importDefault(require("node:fs/promises"));
|
|
12
|
-
|
|
13
|
+
const source_2 = require("./source");
|
|
14
|
+
const plugin_2 = require("./plugin");
|
|
15
|
+
exports.default = plugin_2.UniversalXMLPlugin;
|
|
13
16
|
async function main() {
|
|
14
17
|
const [, , xmlDataPath, platform, optsJson] = process.argv;
|
|
18
|
+
// Handle smoke test flag
|
|
19
|
+
if (xmlDataPath === '--smoke-test') {
|
|
20
|
+
// Module loaded successfully, exit with code 0
|
|
21
|
+
process.exit(0);
|
|
22
|
+
}
|
|
23
|
+
if (!xmlDataPath || !platform) {
|
|
24
|
+
console.error('Usage: node index.js <xmlDataPath> <platform> [optsJson]'); // eslint-disable-line no-console
|
|
25
|
+
process.exit(1);
|
|
26
|
+
}
|
|
15
27
|
const xmlData = await promises_1.default.readFile(xmlDataPath, 'utf8');
|
|
16
28
|
const opts = optsJson ? JSON.parse(optsJson) : {};
|
|
17
|
-
const { xml, unknowns } = await (0,
|
|
29
|
+
const { xml, unknowns } = await (0, source_2.transformSourceXml)(xmlData, platform, opts);
|
|
18
30
|
console.log(xml); // eslint-disable-line no-console
|
|
19
31
|
if (unknowns.nodes.length || unknowns.attrs.length) {
|
|
20
32
|
console.error(unknowns); // eslint-disable-line no-console
|
|
21
33
|
}
|
|
22
34
|
}
|
|
35
|
+
if (require.main === module) {
|
|
36
|
+
(async () => await main())();
|
|
37
|
+
}
|
|
23
38
|
//# sourceMappingURL=index.js.map
|
package/build/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":";;;;;;AAQA,oBAqBC;AA7BD,mCAA4C;AAApC,4GAAA,kBAAkB,OAAA;AAC1B,mCAA4C;AAApC,4GAAA,kBAAkB,OAAA;AAC1B,gEAAkC;AAClC,qCAA4C;AAC5C,qCAA4C;AAE5C,kBAAe,2BAAkB,CAAC;AAE3B,KAAK,UAAU,IAAI;IACxB,MAAM,CAAC,EAAE,AAAD,EAAG,WAAW,EAAE,QAAQ,EAAE,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAE3D,yBAAyB;IACzB,IAAI,WAAW,KAAK,cAAc,EAAE,CAAC;QACnC,+CAA+C;QAC/C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,IAAI,CAAC,WAAW,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC9B,OAAO,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC,CAAC,iCAAiC;QAC5G,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,MAAM,OAAO,GAAG,MAAM,kBAAE,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACvD,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAClD,MAAM,EAAC,GAAG,EAAE,QAAQ,EAAC,GAAG,MAAM,IAAA,2BAAkB,EAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC1E,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,iCAAiC;IACnD,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QACnD,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,iCAAiC;IAC5D,CAAC;AACH,CAAC;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC5B,CAAC,KAAK,IAAI,EAAE,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,CAAC;AAC/B,CAAC"}
|
package/build/lib/node-map.d.ts
CHANGED
|
@@ -1,200 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let android: string;
|
|
5
|
-
}
|
|
6
|
-
namespace App {
|
|
7
|
-
let ios_1: string;
|
|
8
|
-
export { ios_1 as ios };
|
|
9
|
-
}
|
|
10
|
-
namespace Button {
|
|
11
|
-
let ios_2: string[];
|
|
12
|
-
export { ios_2 as ios };
|
|
13
|
-
let android_1: string[];
|
|
14
|
-
export { android_1 as android };
|
|
15
|
-
}
|
|
16
|
-
namespace Cell {
|
|
17
|
-
let ios_3: string;
|
|
18
|
-
export { ios_3 as ios };
|
|
19
|
-
}
|
|
20
|
-
namespace CheckBox {
|
|
21
|
-
let ios_4: string;
|
|
22
|
-
export { ios_4 as ios };
|
|
23
|
-
let android_2: string;
|
|
24
|
-
export { android_2 as android };
|
|
25
|
-
}
|
|
26
|
-
namespace Column {
|
|
27
|
-
let ios_5: string;
|
|
28
|
-
export { ios_5 as ios };
|
|
29
|
-
}
|
|
30
|
-
namespace DateInput {
|
|
31
|
-
let ios_6: string;
|
|
32
|
-
export { ios_6 as ios };
|
|
33
|
-
let android_3: string;
|
|
34
|
-
export { android_3 as android };
|
|
35
|
-
}
|
|
36
|
-
namespace Element {
|
|
37
|
-
let ios_7: string[];
|
|
38
|
-
export { ios_7 as ios };
|
|
39
|
-
let android_4: string[];
|
|
40
|
-
export { android_4 as android };
|
|
41
|
-
}
|
|
42
|
-
namespace Grid {
|
|
43
|
-
let ios_8: string;
|
|
44
|
-
export { ios_8 as ios };
|
|
45
|
-
let android_5: string[];
|
|
46
|
-
export { android_5 as android };
|
|
47
|
-
}
|
|
48
|
-
namespace Icon {
|
|
49
|
-
let ios_9: string[];
|
|
50
|
-
export { ios_9 as ios };
|
|
51
|
-
}
|
|
52
|
-
namespace Image {
|
|
53
|
-
let ios_10: string;
|
|
54
|
-
export { ios_10 as ios };
|
|
55
|
-
let android_6: string;
|
|
56
|
-
export { android_6 as android };
|
|
57
|
-
}
|
|
58
|
-
namespace Indicator {
|
|
59
|
-
let ios_11: string[];
|
|
60
|
-
export { ios_11 as ios };
|
|
61
|
-
let android_7: string[];
|
|
62
|
-
export { android_7 as android };
|
|
63
|
-
}
|
|
64
|
-
namespace Input {
|
|
65
|
-
let ios_12: string[];
|
|
66
|
-
export { ios_12 as ios };
|
|
67
|
-
let android_8: never[];
|
|
68
|
-
export { android_8 as android };
|
|
69
|
-
}
|
|
70
|
-
namespace List {
|
|
71
|
-
let android_9: string[];
|
|
72
|
-
export { android_9 as android };
|
|
73
|
-
let ios_13: string[];
|
|
74
|
-
export { ios_13 as ios };
|
|
75
|
-
}
|
|
76
|
-
namespace Map {
|
|
77
|
-
let ios_14: string;
|
|
78
|
-
export { ios_14 as ios };
|
|
79
|
-
}
|
|
80
|
-
namespace Menu {
|
|
81
|
-
let ios_15: string[];
|
|
82
|
-
export { ios_15 as ios };
|
|
83
|
-
let android_10: string[];
|
|
84
|
-
export { android_10 as android };
|
|
85
|
-
}
|
|
86
|
-
namespace Modal {
|
|
87
|
-
let android_11: string[];
|
|
88
|
-
export { android_11 as android };
|
|
89
|
-
let ios_16: string[];
|
|
90
|
-
export { ios_16 as ios };
|
|
91
|
-
}
|
|
92
|
-
namespace Nav {
|
|
93
|
-
let ios_17: string;
|
|
94
|
-
export { ios_17 as ios };
|
|
95
|
-
}
|
|
96
|
-
namespace PickerInput {
|
|
97
|
-
let ios_18: string;
|
|
98
|
-
export { ios_18 as ios };
|
|
99
|
-
let android_12: string[];
|
|
100
|
-
export { android_12 as android };
|
|
101
|
-
}
|
|
102
|
-
namespace RadioInput {
|
|
103
|
-
let ios_19: string;
|
|
104
|
-
export { ios_19 as ios };
|
|
105
|
-
let android_13: string;
|
|
106
|
-
export { android_13 as android };
|
|
107
|
-
}
|
|
108
|
-
namespace Row {
|
|
109
|
-
let ios_20: string[];
|
|
110
|
-
export { ios_20 as ios };
|
|
111
|
-
let android_14: string;
|
|
112
|
-
export { android_14 as android };
|
|
113
|
-
}
|
|
114
|
-
namespace Scrollable {
|
|
115
|
-
let ios_21: string;
|
|
116
|
-
export { ios_21 as ios };
|
|
117
|
-
let android_15: string[];
|
|
118
|
-
export { android_15 as android };
|
|
119
|
-
}
|
|
120
|
-
namespace SearchInput {
|
|
121
|
-
let android_16: string;
|
|
122
|
-
export { android_16 as android };
|
|
123
|
-
let ios_22: string;
|
|
124
|
-
export { ios_22 as ios };
|
|
125
|
-
}
|
|
126
|
-
namespace SliderInput {
|
|
127
|
-
let android_17: string;
|
|
128
|
-
export { android_17 as android };
|
|
129
|
-
let ios_23: string[];
|
|
130
|
-
export { ios_23 as ios };
|
|
131
|
-
}
|
|
132
|
-
namespace Spinner {
|
|
133
|
-
let ios_24: string;
|
|
134
|
-
export { ios_24 as ios };
|
|
135
|
-
let android_18: string;
|
|
136
|
-
export { android_18 as android };
|
|
137
|
-
}
|
|
138
|
-
namespace SwitchInput {
|
|
139
|
-
let ios_25: string;
|
|
140
|
-
export { ios_25 as ios };
|
|
141
|
-
let android_19: string;
|
|
142
|
-
export { android_19 as android };
|
|
143
|
-
}
|
|
144
|
-
namespace Table {
|
|
145
|
-
let ios_26: string;
|
|
146
|
-
export { ios_26 as ios };
|
|
147
|
-
let android_20: string;
|
|
148
|
-
export { android_20 as android };
|
|
149
|
-
}
|
|
150
|
-
namespace Text {
|
|
151
|
-
let ios_27: string[];
|
|
152
|
-
export { ios_27 as ios };
|
|
153
|
-
let android_21: string[];
|
|
154
|
-
export { android_21 as android };
|
|
155
|
-
}
|
|
156
|
-
namespace TextInput {
|
|
157
|
-
let ios_28: string[];
|
|
158
|
-
export { ios_28 as ios };
|
|
159
|
-
let android_22: string[];
|
|
160
|
-
export { android_22 as android };
|
|
161
|
-
}
|
|
162
|
-
namespace ToggleInput {
|
|
163
|
-
let ios_29: string;
|
|
164
|
-
export { ios_29 as ios };
|
|
165
|
-
let android_23: string[];
|
|
166
|
-
export { android_23 as android };
|
|
167
|
-
}
|
|
168
|
-
namespace Toolbar {
|
|
169
|
-
let ios_30: string;
|
|
170
|
-
export { ios_30 as ios };
|
|
171
|
-
let android_24: string;
|
|
172
|
-
export { android_24 as android };
|
|
173
|
-
}
|
|
174
|
-
namespace UI {
|
|
175
|
-
let ios_31: string;
|
|
176
|
-
export { ios_31 as ios };
|
|
177
|
-
let android_25: string;
|
|
178
|
-
export { android_25 as android };
|
|
179
|
-
}
|
|
180
|
-
namespace Video {
|
|
181
|
-
let android_26: string;
|
|
182
|
-
export { android_26 as android };
|
|
183
|
-
}
|
|
184
|
-
namespace View {
|
|
185
|
-
let android_27: string[];
|
|
186
|
-
export { android_27 as android };
|
|
187
|
-
let ios_32: string[];
|
|
188
|
-
export { ios_32 as ios };
|
|
189
|
-
}
|
|
190
|
-
namespace WebView {
|
|
191
|
-
let ios_33: string;
|
|
192
|
-
export { ios_33 as ios };
|
|
193
|
-
}
|
|
194
|
-
namespace Window {
|
|
195
|
-
let ios_34: string;
|
|
196
|
-
export { ios_34 as ios };
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
export default _default;
|
|
1
|
+
import type { UniversalNameMap } from './types';
|
|
2
|
+
declare const NODE_MAP: UniversalNameMap;
|
|
3
|
+
export default NODE_MAP;
|
|
200
4
|
//# sourceMappingURL=node-map.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-map.d.ts","sourceRoot":"","sources":["../../lib/node-map.
|
|
1
|
+
{"version":3,"file":"node-map.d.ts","sourceRoot":"","sources":["../../lib/node-map.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAE9C,QAAA,MAAM,QAAQ,EAAE,gBAuNf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/build/lib/node-map.js
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
* This file exports a mapping between universal node names and platform-specific node names. The
|
|
5
|
-
* keys in the exported object are the universal node names, and the values are objects with keys
|
|
6
|
-
* corresponding to platformNames. The values of those platformName keys can be either a string
|
|
7
|
-
* (meaning that that platform-specific node name will be mapped to the universal node name), or an
|
|
8
|
-
* array of strings. This means that there can be a many-to-one relationship between
|
|
9
|
-
* platform-specific node names and universal node names.
|
|
10
|
-
*/
|
|
11
|
-
exports.default = {
|
|
3
|
+
const NODE_MAP = {
|
|
12
4
|
Alert: {
|
|
13
5
|
ios: 'XCUIElementTypeAlert',
|
|
14
6
|
android: 'android.widget.Toast',
|
|
@@ -224,4 +216,5 @@ exports.default = {
|
|
|
224
216
|
ios: 'XCUIElementTypeWindow',
|
|
225
217
|
},
|
|
226
218
|
};
|
|
219
|
+
exports.default = NODE_MAP;
|
|
227
220
|
//# sourceMappingURL=node-map.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-map.js","sourceRoot":"","sources":["../../lib/node-map.
|
|
1
|
+
{"version":3,"file":"node-map.js","sourceRoot":"","sources":["../../lib/node-map.ts"],"names":[],"mappings":";;AAUA,MAAM,QAAQ,GAAqB;IACjC,KAAK,EAAE;QACL,GAAG,EAAE,sBAAsB;QAC3B,OAAO,EAAE,sBAAsB;K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AC1B;KACF;IACD,OAAO,EAAE;QACP,GAAG,EAAE,wBAAwB;KAC9B;IACD,MAAM,EAAE;QACN,GAAG,EAAE,uBAAuB;KAC7B;CACF,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
package/build/lib/plugin.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export default class UniversalXMLPlugin extends BasePlugin {
|
|
2
|
-
getPageSource(next: any, driver: any, sessId: any, addIndexPath?: boolean): Promise<string>;
|
|
3
|
-
findElement(...args: any[]): Promise<any>;
|
|
4
|
-
findElements(...args: any[]): Promise<any>;
|
|
5
|
-
_find(multiple: any, next: any, driver: any, strategy: any, selector: any): Promise<any>;
|
|
6
|
-
}
|
|
7
1
|
import { BasePlugin } from 'appium/plugin';
|
|
2
|
+
import type { ExternalDriver, NextPluginCallback, Element } from '@appium/types';
|
|
3
|
+
export declare class UniversalXMLPlugin extends BasePlugin {
|
|
4
|
+
getPageSource(next: NextPluginCallback | null, driver: ExternalDriver, sessId?: any, addIndexPath?: boolean): Promise<string>;
|
|
5
|
+
findElement(next: NextPluginCallback, driver: ExternalDriver, strategy: string, selector: string): Promise<Element>;
|
|
6
|
+
findElements(next: NextPluginCallback, driver: ExternalDriver, strategy: string, selector: string): Promise<Element[]>;
|
|
7
|
+
private _find;
|
|
8
|
+
}
|
|
8
9
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../lib/plugin.
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../lib/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAIzC,OAAO,KAAK,EAAC,cAAc,EAAE,kBAAkB,EAAE,OAAO,EAAC,MAAM,eAAe,CAAC;AAG/E,qBAAa,kBAAmB,SAAQ,UAAU;IAC1C,aAAa,CACjB,IAAI,EAAE,kBAAkB,GAAG,IAAI,EAC/B,MAAM,EAAE,cAAc,EACtB,MAAM,CAAC,EAAE,GAAG,EACZ,YAAY,GAAE,OAAe,GAC5B,OAAO,CAAC,MAAM,CAAC;IA8BZ,WAAW,CACf,IAAI,EAAE,kBAAkB,EACxB,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,OAAO,CAAC;IAIb,YAAY,CAChB,IAAI,EAAE,kBAAkB,EACxB,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,OAAO,EAAE,CAAC;YAIP,KAAK;CAqDpB"}
|