Although I'm not using watir-webdriver, this works for me on
http://calendarview.org (using ruby 1.8.6 + watir 1.9.0 + IE8):

browser.div(:id, 'popupDateField').document.scrollintoview
browser.div(:id, 'popupDateField').click
puts browser.div(:class, "calendar popup").cell(:text,
"Today").exists? if true  # returns true

I don't know why you're getting the undefined method error since the
webdriver API contains a cell method.

orde



On Jul 19, 11:28 am, Cristina Dumitrescu
<cristina.watir.toro...@gmail.com> wrote:
> c:/ruby187/lib/ruby/gems/gems/1.8/gems/watir-webdriver-0.2.4/lib/watir-webd 
> river/elements/elements.rb
> 292: in "method_missing": undefined method 'cell' for #<Watir::Div....>
>
>  Do I have any library missing?
>
> I was trying
>
> $browser.div(:id, "mac").div(:class, "calendar popup",  :index 
> =>1}).cell(:text,"Today").click
>
> But I am reciving an error also. Because there are so many divs I think that
> I have to specify one div by index?!
>
>
>
>
>
>
>
>
>
> On Tue, Jul 19, 2011 at 2:11 PM, orde <ohil...@gmail.com> wrote:
> > The Today and arrow links are in cells.  Have you tried to click the
> > cell?  For example:
>
> > $browser.div(:id, "mac").div(:class, "calendar popup").cell(:text,
> > "Today").click
>
> > Hope it helps...
>
> > orde
>
> > On Jul 19, 10:42 am, Cristina Dumitrescu
> > <cristina.watir.toro...@gmail.com> wrote:
> > > I've attached the screen snapshot.
>
> > > On Tue, Jul 19, 2011 at 1:39 PM, Cristina Dumitrescu <
>
> > > cristina.watir.toro...@gmail.com> wrote:
> > > > Hi,
>
> > > > we are using that calendar component fromhttp://calendarview.org.
>
> > > > When I click on a text field the popup calendar shows and I have to
> > pick a
> > > > date.
>
> > > > I do now know how to select one month/day using watir.
>
> > > > I attached a screensnapshot from our ui.
>
> > > > And take a look at
> > > >http://calendarview.org
> > > > Example HTML Output
>
> > > > We are using divs the calendar popup divs belong to the "mac" div
> > > > I've try:
> > > > $browser.div(:id, "mac").div(:class, "calendar popup")....
>
> > > > I do not know how to click on "Today" button/ click on the right arrow
> > to
> > > > jump to the next month and to select a day.
>
> > > > Can one help me with that.
>
> > > > Thanks a lot in advance,
> > > > Cristina
>
> > > --
> > > Cristina
>
> > --
> > Before posting, please readhttp://watir.com/support. In short: search
> > before you ask, be nice.
>
> > watir-general@googlegroups.com
> >http://groups.google.com/group/watir-general
> > watir-general+unsubscr...@googlegroups.com<http://groups.google.com/group/watir-general%0Awatir-general+unsubscr...>
>
> --
> Cristina

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to