# Return the innerText of the object
# Raise an ObjectNotFound exception if the object cannot be found
def text
assert_exists
return ole_object.innerText.strip
end
I recall my collegue Jason having to write some funky code recently to
work around this behavior, with a multiline text field. I think that
stripping may make sense for some elements (e.g. buttons) but not for
text fields.
What do you all think?
Bret
--
Bret Pettichord
Lead Developer, Watir, http://wtr.rubyforge.org
Blog, http://www.io.com/~wazmo/blog