我使用watir-或框架来处理web对象。下面是我的代码:
require 'watir-or'
require 'watir' # Support all "watirs": firewatir, safariwatir and etc
browser = Watir::Browser.new :firefox
repository = ObjectRepository::Repository.new("path to my xls file which i stored an id for each object and description to each one", browser)
repository.get("txt_UserName").click 但它一直给我这个错误:
<internal:lib/rubygems/custom_require>:30: stack level too deep (SystemStackError)对此有什么想法吗?
发布于 2014-03-06 18:39:32
watir-or的上一次发布是在2011年。从那时起,firewatir和safariwatir都被弃用了,取而代之的是watir-webdriver。我建议你尝试一下当代的页面对象gem,而不是watir--或者像page-object那样。
https://stackoverflow.com/questions/22221068
复制相似问题