Class: CucumberTree::Handler::Url

Inherits:
Base
  • Object
show all
Defined in:
lib/cucumber_tree/handlers/url.rb

Instance Attribute Summary

Attributes inherited from Base

#scenario, #world

Instance Method Summary collapse

Methods inherited from Base

#page

Instance Method Details

#load(snapshot) ⇒ Object



7
8
9
10
# File 'lib/cucumber_tree/handlers/url.rb', line 7

def load(snapshot)
  url = snapshot[:url]
  page.visit url unless url.nil?
end

#save(snapshot) ⇒ Object



12
13
14
# File 'lib/cucumber_tree/handlers/url.rb', line 12

def save(snapshot)
  snapshot[:url] = page.current_path
end