Class: Cello::PageObjects::Page

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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


10
11
12
# File 'lib/cello/pageobjects/page.rb', line 10

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

Class Method Details

.url(url) ⇒ Object


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

def self.url(url)
  @@url = url
end

Instance Method Details

#visitObject


14
15
16
# File 'lib/cello/pageobjects/page.rb', line 14

def visit
  @engine.goto @@url
end