> Ps:  I'm working on a new method for finding objects accordly of their
> properties and values (passed as parameters) Someone is doing something
> similar? I'm studying the def show… of watir.rb, just as Chris McMahon
> suggest me…

Probably easiest just to use them:

C:\Documents and Settings\cmcmahon>irb
irb(main):001:0> require 'watir'
=> true
irb(main):002:0> include Watir
=> Object
irb(main):003:0> ie = IE.attach(:title, /Google/)
......................................................
irb(main):007:0> ie.show_frames
there are 0 frames
=> 0..-1
irb(main):008:0>
.....................................
irb(main):008:0> ie.show_forms
There are 1 forms
Form name: f
       id:
   method: get
   action: /search
=> 0..0
irb(main):009:0>
................................................
irb(main):009:0> ie.show_images
image: name:
         id:
        src:
      index: 1
image: name:
         id:
        src: http://www.google.com/intl/en/images/logo.gif
      index: 2
=> nil
irb(main):010:0>
..................................
etc. etc.

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

Reply via email to