XCTestWD 1.0.22 获取应用控件树中缺少“lable"值,“value”值为空字符串
截取某页面source的部分如下: { "sessionId" : "", "status" : 0, "value" : { "isEnabled" : true, "name" : " ", "value" : "", "lable" : " ", "isVisible" : true, "rect" : { "height" : 736, "x" : 0, "y" : 0, "width" : 414 }, "type" : "Application", "frame" : "{{0, 0}, {414, 736}}", "children" : [ { "children" : [ { "children" : [ { "rect" : { "height" : 736, "x" : 0, "y" : 0, "width" : 414 }, "value" : "", "type" : "Other", "frame" : "{{0, 0}, {414, 736}}", "isVisible" : true, "isEnabled" : true } ], "value" : "", "isVisible" : true, "rect" : { "height" : 736, "x" : 0, "y" : 0, "width" : 414 }, "type" : "Other", "frame" : "{{0, 0}, {414, 736}}", "isEnabled" : true }, { "rect" : { "height" : 736, "x" : 0, "y" : 0, "width" : 414 }, "value" : "", "type" : "Other", "frame" : "{{0, 0}, {414, 736}}", "isVisible" : true, "isEnabled" : true } ], "value" : "", "isVisible" : true, "rect" : { "height" : 736, "x" : 0, "y" : 0, "width" : 414 }, "type" : "Window", "frame" : "{{0, 0}, {414, 736}}", "isEnabled" : true }, { "children" : [ { "children" : [ { "children" : [ { "children" : [ { "children" : [ { "children" : [ { "children" : [ { "rect" : { "height" : 0, "x" : -414, "y" : 20, "width" : 0 }, "value" : "", "type" : "ScrollView", "frame" : "{{-414, 20}, {0, 0}}", "isVisible" : true, "isEnabled" : true }, { "children" : [ { "children" : [ { "rect" : { "height" : 736, "x" : -414, "y" : 0, "width" : 414 }, "value" : "", "type" : "Other", "frame" : "{{-414, 0}, {414, 736}}", "isVisible" : true, "isEnabled" : true } ], "value" : "", "isVisible" : true, "rect" : { "height" : 736, "x" : -414, "y" : 0, "width" : 414 }, "type" : "Other", "frame" : "{{-414, 0}, {414, 736}}", "isEnabled" : true } ], "value" : "", "isVisible" : true, "rect" : { "height" : 736, "x" : -414, "y" : 0, "width" : 414 }, "type" : "Other", "frame" : "{{-414, 0}, {414, 736}}", "isEnabled" : true }, { "children" : [ { "children" : [ { "children" : [ { "rect" : { "height" : 0, "x" : 0, "y" : 0, "width" : 0 }, "value" : "", "type" : "Other", "frame" : "{{0, 0}, {0, 0}}", "isVisible" : true, "isEnabled" : true }, { "rect" : { "height" : 0, "x" : 0, "y" : 0, "width" : 0 }, "value" : "", "type" : "Other", "frame" : "{{0, 0}, {0, 0}}", "isVisible" : true, "isEnabled" : true
+1
新增一行 info["lable"]

should be: lable -> label
should be: lable -> label 😆
哈哈 及时改正错误,label
这里的逻辑,如果 button的value字段为空字符串,那么也赋值为空字符串;能否考虑改为,button的value字段为空字符串,亦赋值为isSelected

https://github.com/macacajs/XCTestWD/pull/36
updated, please checkout the latest version