1
我正在使用watir或框架來處理Web對象。下面是我的代碼:使用Watir或框架在Ruby中定義OR
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)
這方面有任何想法?
我可以在excel表單中實現一個OR並使用頁面對象與它進行交互,這在watir中是相同的嗎? – Dhussein