我正在按照基于视图的类模型为我的应用程序设置 Calabash 测试框架,即每个视图都有一个包含该视图所需方法的类。
但是当我调用诸如“wait_for()”之类的葫芦函数时,它会抛出一个错误:
LoggedInPage:Class (NoMethodError) 的未定义方法“wait_for”
我已经在我的 env.rb 中添加了这些
require 'calabash-cucumber/wait_helpers'
require 'calabash-cucumber/operations'
World(Calabash::Cucumber::Operations)
World(Calabash::Cucumber::WaitHelpers)