Try $ie.select_list(:name, "list2").select("1")
On 6/22/07, Tiffany Fodor <[EMAIL PROTECTED]> wrote:
Hi all! I have a group of three tiered select lists - the first one defines what values will appear in the second and then the value selected in the second defines what values will appear in the third. For my testing, I don't really care what value is selected in the second and third lists, I just want to select the first entry. I've tried $ie.select_list(:name, "list2").select(:index, "1"), but I get a "wrong number of arguments" error. I've also tried adding the contents of the list to an array and setting the value using the array, but the array values are nil. intermediateValues = [$ie.select_list(:name, "list2").getAllContents] puts intermediateValues[1] $ie.select_list(:name, "list2").select(intermediateValues[1]) Any help would be greatly appreciated! Thanks! -Tiffany _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general