QA Blog
Wednesday, June 20, 2012
Capybara save page method
This is a pretty useful method to save the current active page for debugging. This method can be triggered when the scenario fail.
After do |scenario| if scenario.failed? page.save_page end end
This will create a file called capybara-timestamp.html in the current directory
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment