macaca icon indicating copy to clipboard operation
macaca copied to clipboard

XCTestWD 1.0.22 获取应用控件树中缺少“lable"值,“value”值为空字符串

Open leemony opened this issue 9 years ago • 7 comments

截取某页面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

leemony avatar May 24 '17 07:05 leemony

+1

lylh avatar May 24 '17 11:05 lylh

新增一行 info["lable"] image

leemony avatar May 27 '17 02:05 leemony

should be: lable -> label

SamuelZhaoY avatar May 27 '17 02:05 SamuelZhaoY

should be: lable -> label 😆

xudafeng avatar May 27 '17 02:05 xudafeng

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

leemony avatar May 27 '17 03:05 leemony

https://github.com/macacajs/XCTestWD/pull/36

xudafeng avatar May 27 '17 03:05 xudafeng

updated, please checkout the latest version

SamuelZhaoY avatar Jun 03 '17 11:06 SamuelZhaoY