Cucumber – show me the page
Thursday, 6 May 2010
I was debugging a form using Cucumber and was momentarily confused when I ran webrat’s “show me the page”.
I’d added data to text fields, selected options in drop-downs, etc, but none of it showed up.
“Show me the page” only dumps the source the server returned as the last response. It doesn’t show any form data you’ve supplied. You could run it as the first or last thing during a form submission action and you’ll get the same output.
I haven’t tested it, but I imagine the other webrat tasks only operate against the original source, so if you selected an option and then used webrat to check if it was done, webrat wouldn’t see the change.