【发布时间】:2019-01-10 13:27:33
【问题描述】:
我正在使用葫芦。我按照here 的描述运行了calabash-android gen。我有一个步骤定义、一个页面对象和一个功能。这是我的页面对象:
class LocationScanPage < Calabash::ABase
LIST_BUTTON_QUERY="com.facebook.react.views.text.ReactTextView marked:'List'"
def trait
LIST_BUTTON_QUERY
end
def await(opts={})
wait_for_elements_exist([trait])
self
end
end
当我运行bundle exec calabash-android run .\app-releaseStaging.apk 时,我得到:
uninitialized constant Calabash::ABase (NameError)
【问题讨论】: