Class: CapybaraPageObject::Page

Inherits:
Base
  • Object
show all
Includes:
Extractors::PageLevel
Defined in:
lib/page.rb

Instance Attribute Summary

Attributes inherited from Base

#source

Instance Method Summary collapse

Methods included from Extractors::PageLevel

#forms, #meta_description, #meta_keywords, #tables, #title

Methods included from Extractors::Common

#all, #data, #extract, #find

Methods inherited from Base

#path, #prefix, #visit

Constructor Details

#initialize(source) ⇒ Page

Returns a new instance of Page.



7
8
9
10
11
12
13
# File 'lib/page.rb', line 7

def initialize(source)
  if source
    @source = source
  else
    @source = Capybara.current_session
  end
end