Jeff, does that mean that I do this? :

require 'Watir' # the watir controller
include Watir

class Watir::IE
  def search_html( input )
    html.scan( input ) != []
  end
end
def search_html(string)
        puts "   searching the source for " + string
        begin
                assert_match($ie.contains_html,string)
                puts "   ok -- found " + string
        rescue => e
                puts ">>>FAIL -- could not find " + string
        end
end

$ie = Watir::IE.start("http://example.com";)
search_html(".")


Because this also fails..

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to