Re: [Wtr-general] bug in text field

2005-07-15 Thread Angrez Singh

 
Hi,

I volunteer for adding a unit test for this feature. Just drop me a mail stating what all should be in the unit test.

Regards,
Angrez

On Fri, 15 Jul 2005 Bret Pettichord wrote :
I have an app with a date text field. After entering the text, the app does some date checking. For example, if you enter 1/1/75, it turns it into 01/01/1975.

When i entered text using watir (text_field().set('/1/1/75)'), the date checking doesn't happen.
The fix is to trigger an onblur event after changing the text. I've just checked this fix in.

By rights, we should add a unit test for this as well. Any volunteers?

At the same time i fixed this related bug:
http://rubyforge.org/tracker/index.php?func=detailaid=1946group_id=104atid=487

_
 Bret Pettichord
 www.pettichord.com

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general




___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Watir Recorder? write watir scripts using HTTP::Recorder

2005-07-15 Thread Bret Pettichord

At 06:53 PM 7/14/2005, saud aziz wrote:
Are there any plans on Integrating or providing scripts 
generation/recording mechanism that a user could use something like 
HTTP::Recorder of Perl to write out Watir Scripts?


No one that i know of is working on this.


_
 Bret Pettichord
 www.pettichord.com

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


RE: [Wtr-general] Watir Recorder? write watir scriptsusingHTTP::Recorder

2005-07-15 Thread Scott Hanselman








The serialized name values
pairs that HTTP represent in a POST dont give you any context to the TYPE
of object that is being sent. You cant tell a text-field from a listbox.



Scott 











From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of saud aziz
Sent: Friday, July 15, 2005 12:26
PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Watir
Recorder? write watir scriptsusingHTTP::Recorder





I think you missed the
point. You can use HTTP::Recorder to Record actions that would be
recoreded as Watir Scripts. This can take away alot of effort that would be put
by the programmer in writing a script manually and all the actions that you
would do would get Scripted/Recorded in Watir syntax. 

I believe this could very well be done. Common issues that we would face are
that we won't be able to Script actions done on SSL and it isn't supportive of
_javascript_, for now. Other than this, i don't see why we can't make it so it
would record script in watir syntax as by default this module records in
www::Mechanize script syntax and if you read its documentation it states that
you can make it write into custom script as well. Since documentation was not clear
enough and i am not much aware of Perl language other than writing simple
scripts to derive IE using SAMIE, i wasn't really able to deduce how i could do
all this. But there is a very good article on http://www.perl.com/pub/a/2004/06/04/recorder.html
about how to use it. But as i said, its not much clear as to how could i
customize it to write custom scripts.

Saud



On 7/15/05, Michael
Kelly [EMAIL PROTECTED]
wrote:

I've looked into this a bit.I'm not a Perl expert, but I
believe that
HTTP::Recorder takes the proxy approach.That is, it positions
itself
between the browser and the internet to capture the HTTP
traffic.But
the HTTP request is the consequence of a series of actions in the
browser.For Watir, I believe we want to capture the actions
themselves.This leads us to some kind of browser plug-in/toolbar
that
will intercept the user's interactions with the DOM. 

-=michael=-

--
Michael Kelly
Sr. Software Engineer
Eleven Wireless Inc. - The Possibilities are Wireless
http://www.elevenwireless.com



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
] On Behalf Of Bret Pettichord
Sent: Friday, July 15, 2005 9:41 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Watir Recorder? write watir scripts
usingHTTP::Recorder 


At 06:53 PM 7/14/2005, saud aziz wrote:
Are there any plans on Integrating or providing scripts
generation/recording mechanism that a user could use something like
HTTP::Recorder of Perl to write out Watir Scripts? 

No one that i know of is working on this.


_
Bret Pettichord
www.pettichord.com

___ 
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general






-- 
If you develop an ear for sounds that are musical it is like developing an ego.
You begin to refuse sounds that are not musical and that way cut yourself off
from a good deal of experience. -John Cage






___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general