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

Key: WTR-172
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Jonathan Kohl
Votes: 0
Watchers: 0
Operations

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

When setting a radio button, Watir does not scroll into view

Created: 09/Aug/07 12:20 PM   Updated: 28/Oct/08 05:08 PM
Component/s: HTML Controls
Affects Version/s: 1.6.0
Fix Version/s: 1.6.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: watir-1.5.1.1192


 Description  « Hide
When automating a web application that has a lot of radio buttons, I noticed that scrollIntoView is not called during a "set" action. In order to see what was getting selected, I changed "set" in class RadioCheckCommon from this:

 def set
      assert_enabled
      highlight(:set)
      set_clear_item(true)
      highlight(:clear)
   end

to this:

       def set
           assert_enabled
           highlight(:set)
           @o.scrollIntoView #added scrollIntoView
           set_clear_item(true)
           highlight(:clear)
        end


 All   Comments   Work Log   Change History      Sort Order:
Bret Pettichord - 16/Jun/08 04:16 PM
Patch committed in revision 1372 to be included in Watir 1.5.7.