[Wtr-general] $ie.text.include? problem

Jeff Fry jeff.fry at gmail.com
Tue Jun 12 13:58:26 EDT 2007


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 <forum-watir-users at openqa.org> wrote:
>
> but i need watir 1.5 because i'm working with some java scripts
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>



-- 
http://testingjeff.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070612/0d9a99b5/attachment.html 


More information about the Wtr-general mailing list