I want to use the value rather than the text since the text has spaces in it, but I don't know if doing select by value is supported since I got an error:

irb(main):017:0> ie.frame("customizeRemoteContent").select_list(:id, "availableColumnsSelectBox").select("|SYSTEM|AUSTRALIAN").fire_event("ondblclick")

Watir::Exception::NoValueFoundException: Selectbox was found, but didn't find it

em with text of |SYSTEM|AUSTRALIAN

        from C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3306:in `select_item_in_sel

ect_list'

        from C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3284:in `each'

        from C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3284:in `select_item_in_sel

ect_list'

        from C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3261:in `select'

        from (irb):17

        from :0

 

I also tried using the text but don't know how to handle the spaces (please see HTML below this)?

irb(main):014:0> ie.frame("customizeRemoteContent").select_list(:id, "availableColumnsSelectBox").select("    AUSTRALIAN").fire_event("ondblclick")

Watir::Exception::NoValueFoundException: Selectbox was found, but didn't find it

em with text of     AUSTRALIAN

        from C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3306:in `select_item_in_sel

ect_list'

        from C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3284:in `each'

        from C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3284:in `select_item_in_sel

ect_list'

        from C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3261:in `select'

        from (irb):14

        from :0

 

HTML:

 

: 300px\" name=\"availableDiv\"><SELECT id=availableColumnsSelectBox >

_javascript_:expandCollapseAvailableColumns() style=\"WIDTH: 301px; HEIGHT: 1930px

\" multiple size=148 name=availableColumnsSelectBox><OPTION class=folderNode id=

|System value=|System name=\"|System\">-Descriptive Data</OPTION><OPTION id=|Sys

tem value=|System|AUSTRALIAN name=\"|System\">        AUSTRALIAN</OPTION><OPTION

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to