0
Hy!我正試圖在葫蘆ios中編寫預定義的步驟來查找帶有特定標題的按鈕。我的問題是如何在葫蘆中使用標題標籤找到某個UIButton?我已經試過如下:如何通過標題標籤在葫蘆ios中查找UIButton?
Then (/^I see button with title "([^\"]*)" disabled$/) do |buttonTitle|
buttons = query("UIButton").compact
buttons.each do |button|
if query(button, :titleLabel, :text) == buttonTitle
fail(msg="Button found")
return
end
end
end