在calabash-android中,命令query(「*」,:id)
返回對象的id內容列表(並且空id將返回:無)。Calabash-ios:嘗試查詢對象id的列表並獲得結果中的「*****」
但是,葫蘆-IOS與「*****」
(下面的例子)的列表相同的命令返回。
的完整列表是這樣的,甚至有些ID的有內容。
`irb(main):033:0> query("*",:id)
[
[ 0] "*****",
[ 1] "*****",
[ 2] "*****",
[ 3] "*****",
[ 4] "*****",
[ 5] "*****",
[ 6] "*****",
[ 7] "*****",
[ 8] "*****",`
如果我運行命令:query("* id:'next_arrow'")
我得到如下結果:
`[5] {
"alpha" => 1,
"enabled" => false,
"id" => "next_arrow",
"visible" => 1,
"frame" => {
"y" => 0,
"x" => 0,
"width" => 15,
"height" => 15
},
"accessibilityElement" => false,
"class" => "UIImageView",
"label" => nil,
"description" => "<UIImageView: 0x7ffda8a6d3c0; frame = (0 0; 15 15); clipsToBounds = YES; opaque = NO; userInteractionEnabled = NO; layer = <CALayer: 0x7ffda8a6c1f0>> - (null)",
"value" => nil,
"rect" => {
"y" => 386.5,
"center_x" => 18.16,
"center_y" => 461.72,
"x" => 8,
"width" => 15,
"height" => 15
}
}
我期望看到的「next_arrow」列表中,當我跑:query("*",:id)
。
有沒有問題,當我運行命令query(「*」,:text)
我它運行在iOS 9.0模擬器。
我做錯了與查詢語法是什麼?
這是加工!謝謝! –