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

Key: WET-187
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Raghu Venkataramana
Reporter: Venugopal S Shenoy
Votes: 0
Watchers: 1
Operations

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

Allow the "set"ting up of the Radio selection through the label mentioned in the Radio Item

Created: 20/Aug/06 07:58 AM   Updated: 08/Jun/07 04:12 AM
Component/s: Native watir object model
Affects Version/s: 0.8.0, 1.0.0, 0.9.8_beta1, 0.9.8 Final
Fix Version/s: 1.2

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
Right now, the setting of a particular item in the Radio group is possible only through the index:
Browser("title:=<Browser Title>").Radio("name:=<Radio Group Name>").set(<index>),

For eg: Browser("title:=<Browser Title>").Radio("name:=<Radio Group Name>").set(3),
will set the 3rd item (index starts from 1).

Apart from this, it should be possible to set the Radio Item based on the label of the item. like

Browser("title:=<Browser Title>").Radio("name:=<Radio Group Name>").set("<Radio Item Label>")

 All   Comments   Work Log   Change History      Sort Order:
Venugopal S Shenoy - 20/Sep/06 10:25 PM
This is FIXED in my system by including the following lines of code in the "set" function of the "watirradio.rb" file at the location .....\ruby\lib\ruby\gems\1.8\gems\wet-web-0.9.1.361-mswin32\qantom\webobjects\watirobjects

if (index.class.to_s() == "Fixnum")
     reqdRadio = @ieController.Radio("name:=#{name}", "index:=#{index}")
else
     reqdRadio = @ieController.Radio("name:=#{name}", "label:=#{index}")
end

#instead of the earlier line single line.
reqdRadio = @ieController.Radio("name:=#{name}", "index:=#{index}")


Please include this change, in the next build and then make this bug as RESOLVED.

Raghu Venkataramana - 02/Oct/06 04:44 AM
Venugopal already has submitted a fix in the previous version. Must be easy to fix. Will move this 1.0 itself.

Raghu Venkataramana - 08/Jun/07 04:12 AM
This can wait till after 1.0