Okay,

Here it is:

@browser.select_list(:index,1).options.each{|t| p t.text}
"Included Patients (5659)"
"   Adherent (5118)"
"   Non-Adherent (541)"
"Excluded Patients (48)"

On Tue, Oct 30, 2012 at 12:30 PM, Željko Filipin
<[email protected]> wrote:
> On Tue, Oct 30, 2012 at 5:28 PM, Joe Fleck <[email protected]> wrote:
>> >> @browser.select_list(:index,1).options.each{|t| puts t.text}
>> Included Patients (5659)
>>    Adherent (5118)
>>    Non-Adherent (541)
>> Excluded Patients (48)
>
> I forgot #options now returns objects instead of strings.
>
> Try this (replace #puts with #p):
>
> @browser.select_list(:index,1).options.each {|t| p t.text}
>
> That will show you how Ruby sees the options.
>
> Željko
>
> --
> 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]

-- 
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]

Reply via email to