On Mon, Mar 9, 2009 at 12:08 PM, James Byrne <li...@ruby-forum.com> wrote:
> Zach Dennis wrote:
>
>> In my experience relying on the syntactic details of the page is
>> extremely brittle and cumbersome. ... Some tags have both syntactic
>> and semantic meaning, such as forms, labels, fieldsets, and anchor tags.
>>
>
> Is it "brittle" to test for specific css selectors that are tied to page
> details?

I think it depends on what details you're tying them to. :)

>  A typical case is where one has a button to drive in webrat
> and instead of using the button text we use the associated id value
> instead.

Does the id have meaning? Or is it something that communicates nothing
about what it is?  ie:

  click_button "add_new_item"

vs.

   click_button "foobar

-- 
Zach Dennis
http://www.continuousthinking.com
http://www.mutuallyhuman.com
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to