class FireWatir::Frame

Attributes

element_name[RW]

Public Class Methods

new(container, how, what) click to toggle source

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

Public Instance Methods

body_var() click to toggle source
# File lib/firewatir/elements/frame.rb, line 42
def body_var # unfinished

  "body"
end
browser_var() click to toggle source
# File lib/firewatir/elements/frame.rb, line 50
def browser_var
  "browser"
end
document_var() click to toggle source
# File lib/firewatir/elements/frame.rb, line 38
def document_var # unfinished

  "document"
end
html() click to toggle source
# File lib/firewatir/elements/frame.rb, line 33
def html
  assert_exists
  get_frame_html
end
locate() click to toggle source
# 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() click to toggle source
# File lib/firewatir/elements/frame.rb, line 46
def window_var
  "window"
end