我现在在学硒。我将在RubyonRails项目中使用它。现在我创建了一个演示项目,只是为了测试铁轨上的硒元素。
rails_u root/test/selenium/articles/delete_article.rsel的内容如下:
setup :fixtures => :all
open "/articles"
assert_text_present("First Article title")
assert_text_present("Destroy")
click_and_wait("Destroy")
assert_match /Are you sure/i, get_confirmation
assert_text_present("Articles")
assert_text_not_present("First Article title")
在此测试运行期间,我得到以下错误:
undefined local variable or method `get_confirmation' for #<SeleniumOnRails::RSelenese::Evaluator
其他测试(没有对话框)工作正常,没有任何问题。
有关配置的一些信息:
有什么办法可以解决这个问题吗?
谢谢