On Thu, November 13, 2008 14:41, James B. Byrne wrote:

>
> So, as far as I can make out, given the webrat API specifies that a label
> is an acceptable target, this should work.  But it evidently does not.  Is
> this a webrat problem then?
>

Does anyone know why webrat does this for select:

    def selects(option_text, options = {})
      find_select_option(option_text, options[:from]).choose
    end

But uses field_locator for everything else except click:

   def fill_in(field_locator, options = {})
   def uncheck(field_locator)
   def choose(field_locator)
   def attach_file(field_locator, path, content_type = nil

-- 
***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:[EMAIL PROTECTED]
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to