On Tue, Nov 11, 2008 at 5:22 AM, TCBlues <[EMAIL PROTECTED]> wrote:

>
> when you call getAllContents in a select list field you get all the
> captions but I would like to get the possible values, is it possible?
>
> Thank you.
>
>
Here is a method from Watirloo I use

  # return array of option values invisible to the user
    # similar to items (getAllContents) but returns values attribute text
    # instead of visible text items
    def options
      assert_exists
      @container.log "There are [EMAIL PROTECTED] items"
      options = []
      @o.each { |thisItem| options << thisItem.value }
      return options
    end

this is for SelectList.#options
it's not yet in the latest push but you can check out some info here
http://www.bitbucket.org/marekj/watirloo/src/tip/lib/watirloo.rb


-- 
marekj

www.testr.us | semantic test objects modeling in watir

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to