lib/SkeletonMobile/features/support/helper.rb
# encoding: utf-8
# !/usr/bin/env ruby
# metodo para tira screenshot e imbutir no relatorio html
module Helper
def take_screenshot(file_name, result)
file_path = "results/screenshots/test_#{result}"
screenshot = "#{file_path}/#{file_name}.png"
@driver.screenshot(screenshot)
embed(screenshot, 'image/png', 'Click here')
end
end