Class: RegressyCommon::SnapShot

Inherits:
Object
  • Object
show all
Defined in:
lib/regressy_common/snap_shot.rb

Instance Method Summary collapse

Constructor Details

#initialize(driver, tag) ⇒ SnapShot

Returns a new instance of SnapShot.



4
5
6
7
# File 'lib/regressy_common/snap_shot.rb', line 4

def initialize(driver, tag)
  @driver = driver
  @tag = tag
end

Instance Method Details

#take_and_storeObject



9
10
11
12
13
# File 'lib/regressy_common/snap_shot.rb', line 9

def take_and_store
  save_screenshot
  RegressyCommon::SnapStorage.new.store_file(snap_file, @tag)
  true
end