...

so, why not do something like

ie.text_fields.each do |currField|
  case currField.name
    when "field1":
      ... # fill in field1
    when "field2":
      ... # fill in field2
    else
      ... # fill in all other fields
  end
end

... as far as buttons, are you wanting to click ALL of the buttons ???
Are they just doing javascript things or what ???

I mean, if not, they are going to be taking you to another page, and
you won't have the same set of buttons.

Or are you simply wanting to click "any" one random button ???

I'll write that portion of things when you let me know, but the above
will deal with the text fields ...

j.




On 10/27/05, Chris McMahon <[EMAIL PROTECTED]> wrote:
> >    # Parse the web page, extracting links to images
> >    def parse(host)
> >    dict = { }
> >    @body= host.getHTML()
>
> This is pretty funky.  Parsing HTML is non-trivial.  Perhaps a
> different approach?
>
> It doesn't do it today, but I'll bet the ie.show_all_objects method
> could be hacked to create a manipulable structure of all of the page
> elements.
>
> -Chris
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>


--
"http://ruby-lang.org -- do you ruby?"

Jeff Wood

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to