Description:
Initializes the instance of frame or iframe object.
Input:
- how - Attribute to identify the frame element. - what - Value of that attribute.
# File lib/firewatir/elements/frame.rb, line 13 def initialize(container, how, what) @how = how @what = what @container = container end
# File lib/firewatir/elements/frame.rb, line 42 def body_var # unfinished "body" end
# File lib/firewatir/elements/frame.rb, line 50 def browser_var "browser" end
# File lib/firewatir/elements/frame.rb, line 38 def document_var # unfinished "document" end
# File lib/firewatir/elements/frame.rb, line 33 def html assert_exists get_frame_html end
# 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
# File lib/firewatir/elements/frame.rb, line 46 def window_var "window" end