These are chat archives for cucumber/cucumber-ruby

Apr 2016
Robert MacCracken
Apr 05 2016 17:37
I'm trying to abstract a screenshot step which includes the element to be tested, but I can't get the var to return to a collection type...
Then /^"(.)" Screenshot "(.)"/ do |name,elem|
attach_file "#{name}_screenshot", @interface.cropped("#{name}.png", send(elem))
help would be appreciated... thanks
Dave McNulla
Apr 05 2016 19:00
I'm not sure why you would do that, doesn't seem like behavior-driven development. But I saw references to embedding screenshots for failed scenarios, maybe you can leverage that