[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Which script shall I choose for web automation?

campos

11/18/2007 7:12:00 AM

Hi,

I'm trying to write an application which uses script to control web
browser, such as inputing some data in the form, submitting, button
clicking and so on. I wonder which script language is the best for
such operations. As far as I know watir is good in Ruby. What about
Python and others? Advantanges and disadvantages? Thanks in advance!
5 Answers

Phlip

11/18/2007 7:38:00 AM

0

campos wrote:
> Hi,
>
> I'm trying to write an application which uses script to control web
> browser, such as inputing some data in the form, submitting, button
> clicking and so on. I wonder which script language is the best for
> such operations. As far as I know watir is good in Ruby. What about
> Python and others? Advantanges and disadvantages? Thanks in advance!

Do you need all the features of a browser? Such as visual images,
JavaScript, CSS, etc.?

Or are you just trying to drive the servers' program thru HTTP?

If the former, you need to use a browser and its scripting language. Try
Selenium, Watir, or their ilk.

If the later, then you just need the HTTP protocol. Try HttpUnit in
Java, or its equivalents in other languages. I think Perl has Mechanize.

And stay with Ruby, if you can!

--
Phlip

Michael Guterl

11/18/2007 7:47:00 AM

0

Note: parts of this message were removed by the gateway to make it a legal Usenet post.

On Nov 18, 2007 2:40 AM, Phlip <phlip2005@gmail.com> wrote:

> campos wrote:
> > Hi,
> >
> > I'm trying to write an application which uses script to control web
> > browser, such as inputing some data in the form, submitting, button
> > clicking and so on. I wonder which script language is the best for
> > such operations. As far as I know watir is good in Ruby. What about
> > Python and others? Advantanges and disadvantages? Thanks in advance!
>
> Do you need all the features of a browser? Such as visual images,
> JavaScript, CSS, etc.?
>
> Or are you just trying to drive the servers' program thru HTTP?
>
> If the former, you need to use a browser and its scripting language. Try
> Selenium, Watir, or their ilk.
>
> If the later, then you just need the HTTP protocol. Try HttpUnit in
> Java, or its equivalents in other languages. I think Perl has Mechanize.
>

Ruby has mechanize too. http://mechanize.rub...


>
> And stay with Ruby, if you can!
>
> --
> Phlip
>
>

campos

11/18/2007 8:07:00 AM

0

On Nov 18, 3:37 pm, Phlip <phlip2...@gmail.com> wrote:
> campos wrote:
> > Hi,
>
> > I'm trying to write an application which uses script to control web
> > browser, such as inputing some data in the form, submitting, button
> > clicking and so on. I wonder which script language is the best for
> > such operations. As far as I know watir is good in Ruby. What about
> > Python and others? Advantanges and disadvantages? Thanks in advance!
>
> Do you need all the features of a browser? Such as visual images,
> JavaScript, CSS, etc.?
>
> Or are you just trying to drive the servers' program thru HTTP?
>
> If the former, you need to use a browser and its scripting language. Try
> Selenium, Watir, or their ilk.
>
> If the later, then you just need the HTTP protocol. Try HttpUnit in
> Java, or its equivalents in other languages. I think Perl has Mechanize.
>
> And stay with Ruby, if you can!
>
> --
> Phlip

I need visualization of the browser, emulation of human's activities.
Let me try Selenium and Watir. Thanks Phlip!

campos

11/18/2007 8:35:00 AM

0

On Nov 18, 3:46 pm, Michael Guterl <mgut...@gmail.com> wrote:
> Note: parts of this message were removed by the gateway to make it a legal Usenet post.
>
> On Nov 18, 2007 2:40 AM, Phlip <phlip2...@gmail.com> wrote:
>
>
>
>
>
> > campos wrote:
> > > Hi,
>
> > > I'm trying to write an application which uses script to control web
> > > browser, such as inputing some data in the form, submitting, button
> > > clicking and so on. I wonder which script language is the best for
> > > such operations. As far as I know watir is good in Ruby. What about
> > > Python and others? Advantanges and disadvantages? Thanks in advance!
>
> > Do you need all the features of a browser? Such as visual images,
> > JavaScript, CSS, etc.?
>
> > Or are you just trying to drive the servers' program thru HTTP?
>
> > If the former, you need to use a browser and its scripting language. Try
> > Selenium, Watir, or their ilk.
>
> > If the later, then you just need the HTTP protocol. Try HttpUnit in
> > Java, or its equivalents in other languages. I think Perl has Mechanize.
>
> Ruby has mechanize too.http://mechanize.rub...

Cool. It seems making a choice is really hard.

> > And stay with Ruby, if you can!
>
> > --
> > Phlip- Hide quoted text -
>
> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

campos

11/18/2007 8:52:00 AM

0

On Nov 18, 4:34 pm, campos <huwen...@gmail.com> wrote:
> On Nov 18, 3:46 pm, Michael Guterl <mgut...@gmail.com> wrote:
>
>
>
>
>
> > Note: parts of this message were removed by the gateway to make it a legal Usenet post.
>
> > On Nov 18, 2007 2:40 AM, Phlip <phlip2...@gmail.com> wrote:
>
> > > campos wrote:
> > > > Hi,
>
> > > > I'm trying to write an application which uses script to control web
> > > > browser, such as inputing some data in the form, submitting, button
> > > > clicking and so on. I wonder which script language is the best for
> > > > such operations. As far as I know watir is good in Ruby. What about
> > > > Python and others? Advantanges and disadvantages? Thanks in advance!
>
> > > Do you need all the features of a browser? Such as visual images,
> > > JavaScript, CSS, etc.?
>
> > > Or are you just trying to drive the servers' program thru HTTP?
>
> > > If the former, you need to use a browser and its scripting language. Try
> > > Selenium, Watir, or their ilk.
>
> > > If the later, then you just need the HTTP protocol. Try HttpUnit in
> > > Java, or its equivalents in other languages. I think Perl has Mechanize.
>
> > Ruby has mechanize too.http://mechanize.rub...
>
> Cool. It seems making a choice is really hard.
>
>
>
> > > And stay with Ruby, if you can!
>
> > > --
> > > Phlip- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

Find an article that really makes sense.
http://opensource.thoughtworks.com/papers/WatirAndSel...