« Return to Thread: Working with the response DOM

Re: Working with the response DOM

by Andy Watts :: Rate this Message:

Reply to Author | View in Thread

I completely forgot about Hpricot
http://code.whytheluckystiff.net/hpricot/ 

Looks perfect for this.

- Andy


Andy Watts wrote:
Hi,

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

 « Return to Thread: Working with the response DOM