ms-types 0.4.0 → 0.4.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-types",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/node.d.ts CHANGED
@@ -56,6 +56,10 @@ declare interface NodeInfo {
56
56
  * 节点值
57
57
  */
58
58
  value: string;
59
+ /**
60
+ * 节点占位符值
61
+ */
62
+ placeholderValue: string;
59
63
  /**
60
64
  * 节点名称
61
65
  */
@@ -96,6 +100,10 @@ declare interface NodeInfo {
96
100
  * 点击节点随机位置
97
101
  */
98
102
  clickRandom(): boolean;
103
+ /**
104
+ * 节点是否可接收事件 用于判断是否显示在屏幕上
105
+ */
106
+ hittable(): boolean;
99
107
  /**
100
108
  * 获取父节点
101
109
  */
@@ -158,6 +166,12 @@ declare class NodeSelector {
158
166
  * 清除所有选择条件
159
167
  */
160
168
  clearSelector(): NodeSelector;
169
+ /**
170
+ * 获取节点id
171
+ * @param id 节点id
172
+ * @returns 节点选择器
173
+ */
174
+ id(id: string): NodeSelector;
161
175
  /**
162
176
  * 获取节点xpath
163
177
  * @param path xpath路径
@@ -224,6 +238,18 @@ declare class NodeSelector {
224
238
  * @returns 节点选择器
225
239
  */
226
240
  valueMatch(match: string): NodeSelector;
241
+ /**
242
+ * 获取节点占位符值
243
+ * @param placeholderValue 节点占位符值
244
+ * @returns 节点选择器
245
+ */
246
+ placeholderValue(placeholderValue: string): NodeSelector;
247
+ /**
248
+ * 获取节点占位符值匹配
249
+ * @param match 匹配字符串
250
+ * @returns 节点选择器
251
+ */
252
+ placeholderValueMatch(match: string): NodeSelector;
227
253
  /**
228
254
  * 获取节点是否启用
229
255
  * @param enabled 是否启用
@@ -254,30 +280,6 @@ declare class NodeSelector {
254
280
  * @returns 节点选择器
255
281
  */
256
282
  childCount(childCount: number | string): NodeSelector;
257
- /**
258
- * 获取节点x坐标
259
- * @param x x坐标
260
- * @returns 节点选择器
261
- */
262
- x(x: number | string): NodeSelector;
263
- /**
264
- * 获取节点y坐标
265
- * @param y y坐标
266
- * @returns 节点选择器
267
- */
268
- y(y: number | string): NodeSelector;
269
- /**
270
- * 获取节点宽度
271
- * @param width 宽度
272
- * @returns 节点选择器
273
- */
274
- width(width: number | string): NodeSelector;
275
- /**
276
- * 获取节点高度
277
- * @param height 高度
278
- * @returns 节点选择器
279
- */
280
- height(height: number | string): NodeSelector;
281
283
  /**
282
284
  * 获取节点位置
283
285
  * @param x x坐标
@@ -54,6 +54,10 @@ declare interface $节点信息 {
54
54
  * 节点值
55
55
  */
56
56
  value: 字符串;
57
+ /**
58
+ * 节点占位符值
59
+ */
60
+ placeholderValue: 字符串;
57
61
  /**
58
62
  * 节点名称
59
63
  */
@@ -94,6 +98,10 @@ declare interface $节点信息 {
94
98
  * 点击节点随机范围
95
99
  */
96
100
  点击随机范围(): 布尔值;
101
+ /**
102
+ * 节点是否可接收事件 用于判断是否显示在屏幕上
103
+ */
104
+ hittable(): 布尔值;
97
105
  /**
98
106
  * 获取父节点
99
107
  */
@@ -156,6 +164,12 @@ declare class $节点选择器 {
156
164
  * 清除所有选择条件
157
165
  */
158
166
  清除所有选择条件(): $节点选择器;
167
+ /**
168
+ * 获取节点id
169
+ * @param id 节点id
170
+ * @returns 节点选择器
171
+ */
172
+ id(id: 字符串): $节点选择器;
159
173
  /**
160
174
  * 获取节点xpath
161
175
  * @param xpath 节点xpath路径
@@ -222,6 +236,18 @@ declare class $节点选择器 {
222
236
  * @returns 节点选择器
223
237
  */
224
238
  valueMatch(match: 字符串): $节点选择器;
239
+ /**
240
+ * 获取节点占位符值
241
+ * @param placeholderValue 节点占位符值
242
+ * @returns 节点选择器
243
+ */
244
+ placeholderValue(placeholderValue: 字符串): $节点选择器;
245
+ /**
246
+ * 获取节点占位符值匹配
247
+ * @param match 匹配字符串
248
+ * @returns 节点选择器
249
+ */
250
+ placeholderValueMatch(match: 字符串): $节点选择器;
225
251
  /**
226
252
  * 获取节点是否启用
227
253
  * @param enabled 是否启用
@@ -252,30 +278,6 @@ declare class $节点选择器 {
252
278
  * @returns 节点选择器
253
279
  */
254
280
  childCount(childCount: 数字 | 字符串): $节点选择器;
255
- /**
256
- * 获取节点x坐标
257
- * @param x x坐标
258
- * @returns 节点选择器
259
- */
260
- x(x: 数字 | 字符串): $节点选择器;
261
- /**
262
- * 获取节点y坐标
263
- * @param y y坐标
264
- * @returns 节点选择器
265
- */
266
- y(y: 数字 | 字符串): $节点选择器;
267
- /**
268
- * 获取节点宽度
269
- * @param width 宽度
270
- * @returns 节点选择器
271
- */
272
- width(width: 数字 | 字符串): $节点选择器;
273
- /**
274
- * 获取节点高度
275
- * @param height 高度
276
- * @returns 节点选择器
277
- */
278
- height(height: 数字 | 字符串): $节点选择器;
279
281
  /**
280
282
  * 获取节点位置
281
283
  * @param x x坐标