Class: RegressyCommon::SnapShot
- Inherits:
-
Object
- Object
- RegressyCommon::SnapShot
- Defined in:
- lib/regressy_common/snap_shot.rb
Instance Method Summary collapse
-
#initialize(driver, tag) ⇒ SnapShot
constructor
A new instance of SnapShot.
- #take_and_store ⇒ Object
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_store ⇒ Object
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 |