You could also use $ie.select_list(:name, "list2").select(/.*/) -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tiffany Fodor Sent: Friday, June 22, 2007 1:27 PM To: [email protected] Subject: [Wtr-general] Select the first item in a list
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 [email protected] http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
