Hi Chuck,

browser.select_list(:how, 'what').fire_event('onchange') is not
working. (It does not refresh the calendar)

Here is my code:

b.span(:id, "sideMenu").div(:id,
"sideMenutimesheet_ctl00").select_list(:index, 0).set("May")
sleep 5  # I don't really need this sleep. But just adding it in case
it is required.
b.span(:id, "sideMenu").div(:id,
"sideMenutimesheet_ctl00").select_list(:index,
0).fire_event("onclick")



I even tried the following fire events as well. But that did not work
either.

onclick, onmouseup, onmousedown, onmouseover

Any other ideas?


On Feb 23, 3:30 am, Chuck van der Linden <[email protected]> wrote:
> On Feb 22, 4:07 am, sridhar249 <[email protected]> wrote:
>
> > I have the a ruby script (you can get it fromhttp://tinyurl.com/82q6cdp),
> > which will login to my application and select a dropdown option on a
> > page. When the dropdown option is changed manually it will refresh the
> > calendar based on the dropdown option selected. But when i try to
> > change the dropdown option through watir, it does not refresh the
> > calendar. It just changed the dropdown option without refreshing the
> > calendar.
> >              I would like the calendar to refresh based on the
> > dropdown option selected. Please help!
>
> > You can run my ruby script directly to replicate the problem. My ruby
> > script can be download fromhttp://tinyurl.com/82q6cdp.  Thanks in
> > advance!
>
> try firing the 'onchange' event at the dropdown (select list?) after
> you have made the selection
>
>   browser.select_list(:how, 'what').fire_event('onchange')

-- 
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