Hi Revanth,

You haven't posted any HTML code or condition, not getting, what do you want
exactly?

I assume, you have a text field associated with calender. If this is the
case then you can select any date as follows.

t=Time.now
y=t.strftime("%Y")
m=t.strftime("%m")
d=t.strftime("%d")

date= y+"-"+m+"-"+d
browser.text_field(:id, "date").value=date

If this is not the case, please post your question with sufficient details.

-Amit


On Tue, Sep 27, 2011 at 12:43 PM, Revanth <[email protected]> wrote:

> Hi,
>
> How do I select a past date from a past year in the calendar using
> Watir?
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> [email protected]
> http://groups.google.com/group/watir-general
> [email protected]<http://groups.google.com/group/watir-general%[email protected]>
>



-- 
Thanks and Regards,
Amit

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

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to