How about, "If found, returns the index the where text was found.
Returns nil when the text is not found."

The Watir Cheat Sheet entry for contains_text says "Return true if the
current page has the specified text somewhere on the page. Otherwise,
false." Perhaps this should be updated too?

Thanks,
-Dara

------------------------------
Date: Wed, 09 Nov 2005 23:15:32 -0600
From: Bret Pettichord <[EMAIL PROTECTED]>
Subject: Re: [Wtr-general] IE.contains_text and assert
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"; format=flowed

At 07:10 PM 11/9/2005, Dara Lillis wrote:
>The Rdoc for contains_text
>(http://wtr.rubyforge.org/rdoc/classes/Watir/IE.html#M000294) does say 
>"Returns true if the specified text was found." Is that wrong?
>
>Why were my asserts passing when receiving an index (i.e. a number
>string) rather than "true"?

I'm happy to update the rdoc for this. Please suggest something that
would be accurate and helpful.


_____________________
  Bret Pettichord
  www.pettichord.com



------------------------------

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

Reply via email to