选择带有Frank的UITextField

时间:2013-04-26 15:18:06

标签: iphone ios testing frank

我正在使用

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是否在手边,它就在那里。

1 个答案:

答案 0 :(得分:0)

我相信你在“标记”之后缺少一个冒号

触摸“视图:'UITextField'标记:'#{textfield_marked}'”