Sha256: 548fc0be14a32cc8d23cbaa993cd41c4b41c278ee754fc37534a8ef782367517
Contents?: true
Size: 430 Bytes
Versions: 13
Compression:
Stored size: 430 Bytes
Contents
class HomePage class << self attr_accessor :title, :title_text end self.title_text = "Your Site " self.title = "your_css_selector" def initialize(session) @session = Capybara.current_session end def visit_home_page @session.visit("your_url") end end =begin You can the use these methods in the step_definitions as @home_page = HomePage.new(Capybara.current_session) @home_page.visit_home_page =end
Version data entries
13 entries across 13 versions & 1 rubygems