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

Key: WTR-229
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: CL
Votes: 0
Watchers: 0
Operations

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

Can not find image buttons within a Form

Created: 03/Jul/08 05:49 AM   Updated: 13/Aug/08 01:22 PM
Component/s: HTML Controls
Affects Version/s: 1.5.6
Fix Version/s: Future

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. HTML File buttons.html (3 kb)
2. File testcase.rb (8 kb)

Environment:
Windows XP Professional SP 2
Ruby version 1.8.6
gem version 0.9.4


 Description  « Hide
Image buttons of the format <input type="image"> can not be found by :id or by :name or by :alt when searching from a form element. However these image buttons can be found on the page or from a containing div element. The issue is not reproducable with say, text fields or buttons of the format <input type="button">, which behaves as expected.

I will upload a example momentarily.

 All   Comments   Work Log   Change History      Sort Order:
CL - 03/Jul/08 06:16 AM
The aforementioned test case

CL - 03/Jul/08 06:25 AM
The tests test_find_controls_on_page_by_id, test_find_controls_on_page_by_name, and test_find_buttons_on_page_by_alt demonstrate that the text buttons, image buttons and text fields can be found on the page by :id, :name, and by :alt.

However, the tests test_find_controls_in_form_by_id, test_find_controls_in_form_by_name, and test_find_buttons_in_form_by_alt fail to find the image buttons of the format <input type="image"> when searching from the containing Form element.

However, when searching from a containing element that is not a Form element, the image buttons can be found.