我正在使用
When /^I touch the textfield marked "([^\\"]*)"$/ do |textfield_marked|
touch "view:'UITextField' marked'#{textfield_marked}'"
end
这是我得到的错误
frankly_map view:'UITextField' marked'Domain' touch failed because: invalid selector
no paramater found at position 25 in string "view:'UITextField' marked'Domain'" (RuntimeError)
./features/step_definitions/login_steps.rb:18:in `/^I touch the textfield marked "([^\\"]*)"$/'
features/login.feature:8:in `When I touch the textfield marked "Domain"'
我验证了UITextField是否在手边,它就在那里。
答案 0 :(得分:0)
我相信你在“标记”之后缺少一个冒号
试
触摸“视图:'UITextField'标记:'#{textfield_marked}'”