This is indeed a bug. Watir should automatically be triggering an onblur event when doing a select. It does similar things for other controls. Please add this to Jira, so we can be sure to fix it.

Bret

On 3/14/06, Chris McMahon <[EMAIL PROTECTED]> wrote:
> The developer put an 'OnBlur' event behind the selecting from the
> troublesome dropdown, which would populate a form variable with the value of
> the selection.  That event was not happening in my script (not sure how
> Watir does it but you actually have to give the select list focus in order
> for the OnBlur event to fire, or call the event explicitly).  When I added
> this line to my script >>$ie.selectBox( :name,
> "myProjectID2").fireEvent("OnBlur")<< then it set the
> variable and would not reset the value.  Everything for the minute is
> golden—mostly.
>
> Just a thought, but it might be worth putting something in the FAQ or some
> other doc about event gotchas like this to help other not waste there time.

This is actually one of the things I really like about exploring with
Watir.  It seems to me that there's a real design question here.  Not
that this isn't a gotcha, but I don't think it's a FAQ, either.  (I've
never seen anything like this, for instance, and I don't think this
situation has ever turned up on the list.)
-Chris

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to