Hey,

On Tue, Aug 08, 2006 at 05:20:11AM +0900, punkracy / gmail.com wrote:
> Hi,
> could anyone give me an idea how can I get any element inside iframe
> using mechanize?
> 
> i get
> irb(main):026:0> page.iframes
> => ['view_frame' -> /something?some_id=1234]
> how can I fill form, click on links inside this iframe?

Ruby Mechanize treats frames like links.  You'll need to "click" the
iframe before you can manipulate html loaded in the iframe.  Try
something like the following:

  iframe_page = agent.click page.iframes.first
  iframe_page.forms.each do |form|
    p form
  end

Also see the RDoc for WWW::Mechanize::Frame.  Hope that helps.

--Aaron