Module: Vapir::PageContainer
- Includes:
- Container
- Defined in:
- lib/vapir-common/page_container.rb
Instance Method Summary
collapse
Methods included from Container
assert_exists, base_extra_for_contained, base_innermost_by_node, base_innermost_matching_visible_text, contains_text?, element_by_howwhat, element_class_for, element_object_style, handling_existence_failure, normalize_how_what_index, show_all_objects, visible_text, visible_text_nodes
Instance Method Details
#active_element ⇒ Object
22
23
24
|
# File 'lib/vapir-common/page_container.rb', line 22
def active_element
base_element_class.new(nil, nil, .merge(:candidates => proc{|container| [container.document_object.activeElement] })).to_subtype
end
|
#containing_object ⇒ Object
4
5
6
|
# File 'lib/vapir-common/page_container.rb', line 4
def containing_object
document_object
end
|
#document_element_object ⇒ Object
Also known as:
document_element
7
8
9
|
# File 'lib/vapir-common/page_container.rb', line 7
def document_element_object
document_object.documentElement || raise(Exception::ExistenceFailureException, "document_object.documentElement was nil")
end
|
#page_container ⇒ Object
19
20
21
|
# File 'lib/vapir-common/page_container.rb', line 19
def page_container
self
end
|
#title ⇒ Object
12
13
14
|
# File 'lib/vapir-common/page_container.rb', line 12
def title
document_object.title
end
|
#url ⇒ Object
The url of the page object.
16
17
18
|
# File 'lib/vapir-common/page_container.rb', line 16
def url
document_object.location.href
end
|