Class: FireWatir::Frame
- Defined in:
- lib/firewatir/elements/frame.rb
Constant Summary
Constants inherited from Element
Element::FIRST_ORDERED_NODE_TYPE, Element::NUMBER_TYPE, Element::ORDERED_NODE_ITERATOR_TYPE, Element::TO_S_SIZE
Constants included from Container
Container::DEFAULT_HIGHLIGHT_COLOR, Container::MACHINE_IP
Instance Attribute Summary collapse
-
#element_name ⇒ Object
Returns the value of attribute element_name.
Instance Method Summary collapse
-
#body_var ⇒ Object
unfinished.
- #browser_var ⇒ Object
-
#document_var ⇒ Object
unfinished.
- #html ⇒ Object
-
#initialize(container, how, what) ⇒ Frame
constructor
Description: Initializes the instance of frame or iframe object.
- #locate ⇒ Object
- #window_var ⇒ Object
Methods inherited from Element
#assert_enabled, #assert_exists, #attribute_value, #click, #contains_text, #disabled, #element_by_xpath, #element_type, #elements_by_xpath, #enabled?, #exists?, #fire_event, #inspect, #method_missing, #text, #to_s, #visible?, #wait
Methods included from Container
#button, #cell, #checkbox, #dd, #dl, #dt, #file_field, #form, #frame, #hidden, #image, #link, #radio, #row, #select_list, #show_all_objects, #table, #text_field
Methods included from JsshSocket
#js_eval, #js_eval_method, #jssh_socket, #read_socket
Constructor Details
#initialize(container, how, what) ⇒ Frame
Description:
Initializes the instance of frame or iframe object.
Input:
- how - Attribute to identify the frame element.
- what - Value of that attribute.
13 14 15 16 17 |
# File 'lib/firewatir/elements/frame.rb', line 13 def initialize(container, how, what) @how = how @what = what @container = container end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class FireWatir::Element
Instance Attribute Details
#element_name ⇒ Object
Returns the value of attribute element_name.
4 5 6 |
# File 'lib/firewatir/elements/frame.rb', line 4 def element_name @element_name end |
Instance Method Details
#body_var ⇒ Object
unfinished
42 43 44 |
# File 'lib/firewatir/elements/frame.rb', line 42 def body_var # unfinished "body" end |
#browser_var ⇒ Object
50 51 52 |
# File 'lib/firewatir/elements/frame.rb', line 50 def browser_var "browser" end |
#document_var ⇒ Object
unfinished
38 39 40 |
# File 'lib/firewatir/elements/frame.rb', line 38 def document_var # unfinished "document" end |
#html ⇒ Object
33 34 35 36 |
# File 'lib/firewatir/elements/frame.rb', line 33 def html assert_exists get_frame_html end |
#locate ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/firewatir/elements/frame.rb', line 19 def locate if(@how == :jssh_name) @element_name = @what else @element_name = locate_frame(@how, @what) end #puts @element_name @o = self unless @element_name raise UnknownFrameException, "Unable to locate a frame using #{@how} and #{@what}. " end end |
#window_var ⇒ Object
46 47 48 |
# File 'lib/firewatir/elements/frame.rb', line 46 def window_var "window" end |