Module: LitePage

Defined in:
lib/lite_page.rb,
lib/lite_page/version.rb,
lib/lite_page/element_factory.rb,
lib/lite_page/page_initializers.rb

Defined Under Namespace

Modules: ClassMethods, ElementFactory, PageInitializers

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Extends the including class with the ElementFactory and ClassMethods modules.



9
10
11
12
# File 'lib/lite_page.rb', line 9

def self.included(base)
  base.extend(ElementFactory)
  base.extend(ClassMethods)
end

Instance Method Details

#initialize(browser) ⇒ Object

Initializes the page instance and sets the browser instance

Parameters:

  • browser (Object)

    the browser instance

Returns:

  • (Object)

    the browser instance



18
19
20
# File 'lib/lite_page.rb', line 18

def initialize(browser)
  @browser = browser
end