vendor/gems/gems/firewatir-1.2.1/htmlelements.rb
# Description:
#   Selects item from the select box.
#
# Input:
#   - name  - :value or :text - how we find an item in the select box
#   - item  - value of either item text or item value.
#

Selects item from the select box.

name  - :value or :text - how we find an item in the select box
item  - value of either item text or item value.
Selects item from the select box . name - : value or : text - how we find an item in the select box item - value of either item text or item value .
def select_item_in_select_list(attribute, value)
        assert_exists
        highlight( :set )
        doBreak = false
        @o.each do |option| 
            if value.matches( option.invoke(attribute.to_s))
                if option.selected
                    doBreak = true
                    break
                else
                    option.selected = true
                    @o.fireEvent("onChange")
                    @o.wait
                    doBreak = true
                    break
                end
            end
        end
        unless doBreak
            raise NoValueFoundException, 
                    "No option with #{attribute.to_s} of #{value} in this select element"  
        end
        highlight( :clear )
    end
def select_item_in_select_list ( attribute , value ) assert_exists highlight ( :set ) doBreak = false @o . each do | option | if value . matches ( option . invoke ( attribute . to_s ) ) if option . selected doBreak = true break else option . selected = true @o . fireEvent ( "onChange" ) @o . wait doBreak = true break end end end unless doBreak raise NoValueFoundException , "No option with #{attribute.to_s} of #{value} in this select element" end highlight ( :clear ) end
Description:
Selects item from the select box.
Description : Selects item from the select box .
#element.log "Setting box #{@o.name} to #{attribute} #{value} "
 # items in the list

attribute
<not_specific>
value
<not_specific>