I saw the form method being used in the form_test.rb unittest, but
didn't see how Watir::Form fit in.  I see the light!  :-)

Thanks, I appreciate your help

On Tue, 09 Aug 2005 13:51:04 -0600
Paul Rogers <[EMAIL PROTECTED]> wrote:

> 
> 
> If your html looks like this:
> <form name=abc1 method=post action =/do/something>
> <input type=text name = the_text_field>
> </form>
> 
> you would use a form like this:
> 
> ie.form(:name , 'abc1').text_field(:name , 'the_text_field').set
> ('567')
> 
> There are more examples in the form_test.rb unit tests
> 
> 
> what happens is the form method of ie creates the form object you are
> talking about, so you dont really need to worry about creating it
> yourself
> 
> Paul
> 
> 
> ----- Original Message -----
> From: Warren Pollans <[EMAIL PROTECTED]>
> Date: Tuesday, August 9, 2005 1:13 pm
> Subject: [Wtr-general] Watir::Form questions
> 
> > I would like to be able to use form objects in my tests, but have
> > become confused - as the questions below will no doubt illustrate.
> > I have some tests that I've written in perl using www::mechanize 
> > that I
> > would like to port to ruby.
> > 
> > The Watir api docs (rdoc) show the following for Class Watir::Form:
> > 
> > Form Factory object
> > 
> >    * ieController - an instance of an IEController
> >    * how - symbol - how we access the form
> > (:name, :id, :index, :action, :method)
> >    * what - what we use to access the form
> > 
> > 1.  what is "IEController"?  is this a part of the watir
> > distribution? 2.  the first argument passed to initialize is
> > "container" - what is this?
> > 3.  the watir unittests don't use Watir::Form, the formtest calls
> > ie.form.  what's the connection between the two?  how are a 
> > Watir::Formobject and the object returned by ie.form related?
> > 
> > A simple example of the use of Watir::Form would be appreciated.
> > 
> > Thanks,
> > 
> > Warren
> > _______________________________________________
> > Wtr-general mailing list
> > [email protected]
> > http://rubyforge.org/mailman/listinfo/wtr-general
> > 
> 
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to