@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
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
- 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
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
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
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
'.
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