Sha256: 790cddefc297ee34540663167e769ea91105d1b06c8864c619941f989c2113dd
Contents?: true
Size: 839 Bytes
Versions: 2
Compression:
Stored size: 839 Bytes
Contents
Given /^I (?:open|visit|go to) the (.+\s?page)(.*)$/ do |page_name, args| self.page = PageModels.create(page_name, args) self.page_model = self.page self.page.open! self.page.verify! end Given /^I (?:try to|attempt to|fail to) (?:open|visit|go to) the (.+\s?page)(.*)$/ do |page_name, args| self.page = PageModels.create(page_name, args) self.page_model = self.page self.page.open! end Then /^I should (?:see|be on) the (.+\s?page)(.*)$/ do |page_name, args| self.page = PageModels.create(page_name, args) self.page_model = self.page self.page.verify! end at_exit do driver = PageModels::Configuration.instance.driver driver.close if driver.class.to_s == "Watir::Browser" end module PageModels module CucumberIntegration attr_accessor :page, :page_model end end World(PageModels::CucumberIntegration)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pagemodels-0.1.8 | lib/page_models/integration/cucumber.rb |
pagemodels-0.1.7 | lib/page_models/integration/cucumber.rb |