Nicola Kennedy wrote:
> require 'watir'
> include Watir
> require 'test/unit'
> class TC_recorded < Test::Unit::TestCase
>
> def test_recorded
> ie = IE.new
> ie.goto("http://www.google.co.uk")
> ie.bring_to_front
>
> ie.text_field(:name, 'q').set("barry manilow")
> ie.button(:name, 'btnG').click
> end
>
> def click_links ie
> unless ie.link(:url, "http://www.classicbands.com/manilow.html").exists?
> ie.link(:url,
> 'http://www.google.co.uk/search?q=barry+manilow&hl=en&start=10&sa=N').click
> click_links ie
> else
> ie.link(:url, "http://www.classicbands.com/manilow.html").click
> end
> end
> end
>
Your problem is that your test method never calls your click_link
method. You need to add a call to it, presumably as the last line of
test_recorded.
You also have run into a little-known limitation of Watir. It does not
support Barry Manilow. And I'm not sure it ever will. Sorry.
Bret
_______________________________________________
Wtr-general mailing list
[EMAIL PROTECTED]
http://rubyforge.org/mailman/listinfo/wtr-general