0
我正在嘗試啓動並使用Calabash運行React-Native應用程序。如何使用React-Native在Calabash中執行CONTAINS查詢
我可以成功地做到這一點查詢:
query("RCTView marked:' Coaching'")
但也有與這個不幸的間距多個視圖。我想要做一個包含查詢。
我曾嘗試沒有成功的幾個變種,例如:
query("RCTView {label CONTAINS 'Coaching'}")
但是,這是行不通的。
這就是視圖看起來像第一個查詢的結果是:
[
[0] {
"alpha" => 1,
"enabled" => true,
"id" => nil,
"visible" => 1,
"frame" => {
"y" => 0,
"x" => 0,
"width" => 75,
"height" => 50
},
"accessibilityElement" => false,
"class" => "RCTView",
"label" => " Coaching",
"description" => "<RCTView: 0x7ff38205a2e0; reactTag: 474; frame = (0 0; 75 50); layer = <CALayer: 0x600000228080>>",
"value" => nil,
"rect" => {
"y" => 617,
"center_x" => 262.5,
"center_y" => 642,
"x" => 225,
"width" => 75,
"height" => 50
}
}
]