QA Blog
Pages
(Move to ...)
Home
Setting up/Installing Cucumber Automation
▼
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
‹
›
Home
View web version
No comments:
Post a Comment