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]

Reply via email to