[wtr-general] Re: ie.contains_text problem

2009-01-26 Thread Michael Hwee
@googlegroups.com Sent: Friday, January 23, 2009 3:13:11 PM Subject: [wtr-general] Re: ie.contains_text problem Using your example HTML, you can verify the contents of the text field with either of the following: assert(ie.text_field(:id, 'ctl140_ctl00_ctl09_txtValue').value == 'FOO') or assert

[wtr-general] Re: ie.contains_text problem

2009-01-26 Thread Monkeybuns
General watir-general@googlegroups.com Sent: Friday, January 23, 2009 3:13:11 PM Subject: [wtr-general] Re: ie.contains_text problem Using your example HTML, you can verify the contents of the text field with either of the following:     assert(ie.text_field(:id, 'ctl140_ctl00_ctl09_txtValue

[wtr-general] Re: ie.contains_text problem

2009-01-23 Thread dara
- Original Message From: Bret Pettichord b...@pettichord.com To: watir-general@googlegroups.com Sent: Friday, January 23, 2009 7:05:46 AM Subject: [wtr-general] Re: ie.contains_text problem I'm not sure if contains_text returns false or nil when fails to find a match. Try this instead

[wtr-general] Re: ie.contains_text problem

2009-01-23 Thread Tiffany Fodor
Hi! I typically conditionals like this for text: if ie.text.include?('FOO') puts 'FOO found' else puts 'FOO not found' end Hope this helps! -Tiffany On Jan 23, 7:22 am, Monkeybuns shaml...@twia.org wrote: The following code returns FOO not found even though FOO is present in the

[wtr-general] Re: ie.contains_text problem

2009-01-23 Thread Tiffany Fodor
Michael - Original Message From: Bret Pettichord b...@pettichord.com To: watir-general@googlegroups.com Sent: Friday, January 23, 2009 7:05:46 AM Subject: [wtr-general] Re: ie.contains_text problem I'm not sure if contains_text returns false or nil when fails to find a match. Try

[wtr-general] Re: ie.contains_text problem

2009-01-23 Thread Bret Pettichord
From: Bret Pettichord b...@pettichord.com To: watir-general@googlegroups.com Sent: Friday, January 23, 2009 7:05:46 AM Subject: [wtr-general] Re: ie.contains_text problem I'm not sure if contains_text returns false or nil when fails to find a match. Try this instead: if assert

[wtr-general] Re: ie.contains_text problem

2009-01-23 Thread dara
'. Just use if ie.text.include?(FOO)   puts FOO found else   puts FOO not found end Michael - Original Message From: Bret Pettichord b...@pettichord.com To: watir-general@googlegroups.com Sent: Friday, January 23, 2009 7:05:46 AM Subject: [wtr-general] Re