Sorri, Presuming that the CSV file is saved to an array contains data like this: aMultiSelectValues = ['Selection A", "Selection b"]
# Loop trough the selections aMultiSelectValues.each do | sSelection | # Set the current value browser.select_list(:how, "what").set(sSelection) end Joe On Jul 18, 12:09 am, Soori <[email protected]> wrote: > All, > > I need to fill a form with bunch of data. I have written a Watir > script which will get the data from the csv file and fill the form. On > the form , I have a multi select list box . I am not able to fill this > multi select listbox since each value will carry random selection. > for example first record may have 2 values to be selected on the list > box, 2nd record may have 3 values to be selected on it. I got stuck in > this task through my script. > > Please let me know the way to unstuck. > > Thanks in advance. > > /Soori -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: [email protected] To unsubscribe: [email protected]
