Class: Cello::PageObjects::Page

Inherits:
Object
  • Object
show all
Extended by:
ElementHelper
Defined in:
lib/cello/pageobjects/page.rb

Constant Summary collapse

MESS =
"SYSTEM ERROR: method missing"

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from IframeHelper

#iframe

Methods included from HiddenHelper

#define_extras_for_hidden

Methods included from SpanHelper

#define_extras_for_span

Methods included from ButtonHelper

#define_extras_for_button

Methods included from LinkHelper

#define_extras_for_link

Methods included from RadioHelper

#define_extras_for_radios

Methods included from DivHelper

#define_extras_for_div

Methods included from SelectHelper

#define_extras_for_select

Methods included from TextareaHelper

#define_extras_for_textarea

Methods included from TextfieldHelper

#define_extras_for_text_field

Methods included from CheckboxHelper

#define_extras_for_checkbox

Constructor Details

#initialize(engine) ⇒ Page

Returns a new instance of Page.



12
13
14
# File 'lib/cello/pageobjects/page.rb', line 12

def initialize(engine)
  @engine = engine
end

Instance Attribute Details

#engineObject (readonly)

Returns the value of attribute engine.



8
9
10
# File 'lib/cello/pageobjects/page.rb', line 8

def engine
  @engine
end

Instance Method Details

#urlObject

Raises:



20
# File 'lib/cello/pageobjects/page.rb', line 20

def url; raise MESS; end

#visitObject



16
17
18
# File 'lib/cello/pageobjects/page.rb', line 16

def visit
  @engine.goto url
end