Class: Vapir::Firefox::Frame
- Includes:
- PageContainer, Vapir::Frame
- Defined in:
- lib/vapir-firefox/elements/frame.rb
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
Methods included from PageContainer
#execute_script, #outer_html, #text
Methods included from Container
#element_by_xpath, #element_object_by_xpath, #element_objects_by_xpath, #elements_by_xpath, #extra_for_contained, #innermost_by_node, #innermost_matching_visible_text, #visible_text_nodes
Methods inherited from Element
#click, #click_no_wait, #current_style_object, element_object_style, #fire_event, #initialize, #outer_html, #visible?, #wait
Constructor Details
This class inherits a constructor from Vapir::Firefox::Element
Instance Method Details
#content_window_object ⇒ Object
19 20 21 |
# File 'lib/vapir-firefox/elements/frame.rb', line 19 def content_window_object element_object.contentWindow end |
#document_object ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/vapir-firefox/elements/frame.rb', line 10 def document_object unless @element_object # don't use element_object because it does assert_exists, and don't assert_exists # unless @element_object isn't defined at all, because element_object_exists? uses # the document_object, so that would infinite loop. locate! end @element_object.contentDocument # OR content_window_object.document end |