class Munchsrb::Gather::Scenario
Munchsrb::Gather::Scenario
written story page scraping.
Attributes
details[R]
Public Class Methods
new()
click to toggle source
# File lib/munchsrb/gather/scenario.rb, line 9 def initialize @page = open @driver = Munchsrb::Gather.driver @details = nil end
Public Instance Methods
execute()
click to toggle source
# File lib/munchsrb/gather/scenario.rb, line 15 def execute @page.menu_link.click # open menu page Munchsrb::Gather::PageObject::MenuPage.new.tap do |page| @details = page.details end ensure quit end
Private Instance Methods
open()
click to toggle source
# File lib/munchsrb/gather/scenario.rb, line 26 def open Munchsrb::Gather::PageObject::IndexPage.new.tap(&:load) end
quit()
click to toggle source
# File lib/munchsrb/gather/scenario.rb, line 30 def quit @driver.quit end