On Tue, Apr 7, 2009 at 11:58, catepillar <cmay...@gmail.com> wrote:
> <div id="date" title="Date">4/2</div>
> date = ff.text_field(:id, "date")
> but that returns an error: Unable to locate element, using :id,
> "date" (Watir::Exception::UnknownObjectException)

You need to access div, not text field. Try this:

date = ff.div(:id, "date").text

Željko
--
http://watirpodcast.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to