我遇到了Calabash / Cucumber的问题,我需要启动一个pyleb脚本,由culebra(androidviewclient)生成,用几句话,点击我的应用程序的外部视图。 这是我的ruby页面类:
require 'calabash-android/abase'
class SignUpPage < Calabash::ABase
def login_google_confirm_step_1
system '/PATH/social_login_step_1.py'
end
这是我的步骤:
Then(/^I am able to submit google login step 1$/) do
@current_page = page(SignUpPage)
@current_page.login_google_confirm_step_1
end
当我午餐黄瓜功能时,我有这个错误:
UiTests/features/android/pages/signup_page.rb
Failed to load 'py' programming language for file UiTests/features/android/pages/social_login_step_1.py: cannot load such file -- rubypython
* UiTests/features/android/pages/social_login_step_1.py [NOT SUPPORTED]
我已经安装了rubypython gem,我在网上找不到任何可以帮助我的话题。 有人可以帮帮我吗?感谢。
答案 0 :(得分:2)
好的我解决了....问题是我保存python脚本的路径(social_login_step_1.py),我从pages /目录中删除了文件,其中的内容是各种pages.rb并再次运行< / p>