Module: Watirmark::ProcessPageDefinition

Included in:
PageDefinition
Defined in:
lib/watirmark/page/page_definition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#process_page_active_page_method(proc) ⇒ Object

Returns the value of attribute process_page_active_page_method.



5
6
7
# File 'lib/watirmark/page/page_definition.rb', line 5

def process_page_active_page_method
  @process_page_active_page_method
end

#process_page_navigate_method(proc = nil) ⇒ Object

Returns the value of attribute process_page_navigate_method.



5
6
7
# File 'lib/watirmark/page/page_definition.rb', line 5

def process_page_navigate_method
  @process_page_navigate_method
end

#process_page_submit_method(proc) ⇒ Object

Returns the value of attribute process_page_submit_method.



5
6
7
# File 'lib/watirmark/page/page_definition.rb', line 5

def process_page_submit_method
  @process_page_submit_method
end

#process_pagesObject

Returns the value of attribute process_pages.



5
6
7
# File 'lib/watirmark/page/page_definition.rb', line 5

def process_pages
  @process_pages
end

Instance Method Details

#always_activate_parentObject



20
21
22
# File 'lib/watirmark/page/page_definition.rb', line 20

def always_activate_parent
  @current_process_page.always_activate_parent = @current_process_page.parent.name
end

#process_page(name) ⇒ Object



10
11
12
13
14
# File 'lib/watirmark/page/page_definition.rb', line 10

def process_page(name)
  @current_process_page = find_or_create_process_page(name)
  yield
  @current_process_page = @current_process_page.parent
end

#process_page_alias(x) ⇒ Object



16
17
18
# File 'lib/watirmark/page/page_definition.rb', line 16

def process_page_alias(x)
  @current_process_page.alias << x
end