Class: Vapir::Firefox::Frame
- Includes:
- PageContainer, Vapir::Frame
- Defined in:
- lib/vapir-firefox/elements/frame.rb
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
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 |