[rspec-users] Working with the response DOM
jonathan at parkerhill.com
Wed Oct 24 09:15:05 EDT 2007
I've been wondering the same for quite a while
but hadnt asked the question so succinctly
In that thread, Pat suggests helpers like click_link and submit_form
If you progress along these lines, please post your solution, I'm
On Oct 24, 2007, at 12:43 AM, Andy Watts wrote:
> I completely forgot about Hpricot
> Looks perfect for this.
> - Andy
> Andy Watts wrote:
>> Anyone know a way to traverse/query the DOM in a response?
>> I'm trying to write reusable story step implementations and as
>> much as
>> possible want to work with the actual response from a previous GET.
>> As an example, I often have buttons that POST/PUT a hidden value.
>> My goal is a reusable step implementation that takes the button
>> label and
>> works the existing response DOM to make an appropriate POST/PUT.
>> - Andy
> View this message in context: http://www.nabble.com/Working-with-
> Sent from the rspec-users mailing list archive at Nabble.com.
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users