Sha256: c438347d09e01ff3627ddb65eeb4a528cdd778df93af81b77258701ca24c6140

Contents?: true

Size: 425 Bytes

Versions: 14

Compression:

Stored size: 425 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

# You can the use these methods in the step_definitions as
# @home_page = HomePage.new(Capybara.current_session)
# @home_page.visit_home_page

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bddfire-3.0.2 lib/bddfire/page-objects/HomePage.rb
bddfire-3.0.1 lib/bddfire/page-objects/HomePage.rb
bddfire-3.0.0 lib/bddfire/page-objects/HomePage.rb
bddfire-2.0.8 lib/bddfire/page-objects/HomePage.rb
bddfire-2.0.7 lib/bddfire/page-objects/HomePage.rb
bddfire-2.0.6 lib/bddfire/page-objects/HomePage.rb
bddfire-2.0.5 lib/bddfire/page-objects/HomePage.rb
bddfire-2.0.4 lib/bddfire/page-objects/HomePage.rb
bddfire-2.0.3 lib/bddfire/page-objects/HomePage.rb
bddfire-2.0.2 lib/bddfire/page-objects/HomePage.rb
bddfire-2.0.1 lib/bddfire/page-objects/HomePage.rb
bddfire-2.0.0 lib/bddfire/page-objects/HomePage.rb
bddfire-1.9.9 lib/bddfire/page-objects/HomePage.rb
bddfire-1.9.8 lib/bddfire/page-objects/HomePage.rb