|
List Info
Thread: Re: Problem with wrapper created around Watir.rb
|
|
| Re: Problem with wrapper created around
Watir.rb |

|
2007-02-22 07:30:14 |
|
Hi Bret Sorry I missed the wrapper code that i have written
require 'watir' include Watir include SupportsSubElements
module SupportsSubElements
def _getNikiraLink(links, how, what)
link = nil case how when :index begin link = links[ (what-1).to_s ] rescue link=nil end
when :url links.each do |thisLink| if what.matches(thisLink.href) link = thisLink if link == nil end
end when :text links.each do |thisLink| if what.matches(thisLink.innerText.strip) link = thisLink if link == nil
end end when :id links.each do |thisLink| if what.matches(thisLink.invoke(&qu | |