I don't believe Watir 1.5 is your issue here. I tried your code in 1.5 and
also only got one OK. Specifically, I tried:

require 'test/unit'
require 'watir'

class TC_sample < Test::Unit::TestCase
  include Watir

  def test_sample
    testSite = 'http://www.google.com'
    $ie = IE.new
    $ie.goto(testSite)

    if $ie.text.include?("Programs")
    then puts "OK"
    else puts "CRAP"
    end

  end # method

end #class


And got:

>ruby test_sample.rb
Loaded suite test_sample
Started
OK
.
Finished in 1.442 seconds.


If you run exactly what I pasted above, do you see 3 OKs? If not, how does
your script differ from mine? How does your actual test site differ from
google.com?

Jeff



On 6/12/07, mihai <[EMAIL PROTECTED]> wrote:

but i need watir 1.5 because i'm working with some java scripts
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general




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

Reply via email to