brunobatista25/RubyGene

View on GitHub
lib/SkeletonMobile/features/support/helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
# 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