Hi Everyone., I am having problems selecting options from select list.
HTML: <select class="gwt-ListBox" size="1"> <option value="Included Patients (3806)">Included Patients (3806)</option> <option value=" Adherent (93)"> Adherent (93)</option> <option value=" Non-Adherent (3713)"> Non-Adherent (3713)</option> <option value="Excluded Patients (68)">Excluded Patients (68)</option> </select> Some of the options have leading white spaces and when I try to select those I get the error stating not able to locate. I have tried the following: @browser.option(:text,option_two_arr[opt]).click or @browser.select_list(:index,1).select option_two_arr[opt] and both error when trying to select one with leading white spaces. option_two_arr[opt] i get all of the options place it in an array I would really appreciate help. I have spent a day and half on getting a solution. Thank you, Joe -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
