History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WTR-15
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Bret Pettichord
Reporter: MarkC
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Watir

OnBlur event is not being fired when select from a selectBox control.

Created: 15/Mar/06 09:00 AM   Updated: 24/Nov/08 02:03 PM
Component/s: HTML Controls
Affects Version/s: 1.4.1, 1.5.0/1.5.1
Fix Version/s: Next

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Windows XP SP2 and IE 6
Issue Links:
Relationship
 
This issue Relates to:
WTR-22 SelectBox doesn't focus Minor Open


 Description  « Hide
> 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

The OnBlur event is not being fired after selecting a value from a selectBox.

 All   Comments   Work Log   Change History      Sort Order:
Bret Pettichord - 15/Mar/06 09:38 AM
Here is the mail thread: http://rubyforge.org/pipermail/wtr-general/2006-March/005274.html

Note that for some reason Mark's replies are all archived as new threads.

Bret Pettichord - 15/Mar/06 09:41 AM
This is indeed a bug. Watir should automatically be triggering an onblur event when doing a select.