Your html does not show hidden type select box (I think it even does not exits). But, you could have just typed hidden by mistake (instead of disabled). But, just in case...
Your html shows a hidden input field
<input type="hidden" name="anSortValues[field1]" value="2">
and a disabled select box
<select name="bPlaceholder" disabled style="font-size: 9 px"><option>1<option selected>2<option>3<option>4
<option>5<option>6<option>7<option>8</select>
Please do check this site http://www.w3schools.com/ (for html visit http://www.w3schools.com/html/default.asp) for more info.
Please do check this site http://www.w3schools.com/ (for html visit http://www.w3schools.com/html/default.asp) for more info.
If you have this html
<select name="bPlaceholder" disabled><option>1<option selected>2<option>3<option>4<option>5<option>6<option>7<option>8</select>
and you would like to know what is selected, this will do it
irb(main):014:0> ie.select_list( :name, "bPlaceholder").getSelectedItems
=> ["2"]
It does not matter that it is disabled.
If you would like to get all options, try this
irb(main):015:0> ie.select_list( :name, "bPlaceholder").getAllContents
=> ["1", "2", "3", "4", "5", "6", "7", "8"]
I hope I answered your question.
--
http://www.testingreflections.com/blog/3071
http://iskusivac.blog.hr/
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
