The company for which I work is heavily using WATIR to write web application
tests.

Recently we built a generic framework using WATIR as the base for writing UI
Automated Tests for all our products. We wrote wrappers on top of WATIR to
abstract UI operations.

For example we thought that editing a wizard is a UI operation. So we wrote
wrappers on top of WATIR that would discover the controls on a page and
intelligently fill up forms based on specific test cases.

I was the 'so-called' architect of the project and we also ended up
displaying our framework in our annual In-House Innovation Program.

I would like to contribute to the User Guide and othe WATIR documentation
including the much awaited multi-browser support functionality thats
en-route.

Can somebody gimme some pointers in where to start with the Doc
Contributions?

It goes without saying that I am a huge fan of WATIR.

--
Dhruv


On 5/5/07, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:

Send Wtr-general mailing list submissions to
       wtr-general@rubyforge.org

To subscribe or unsubscribe via the World Wide Web, visit
       http://rubyforge.org/mailman/listinfo/wtr-general
or, via email, send a message with subject or body 'help' to
       [EMAIL PROTECTED]

You can reach the person managing the list at
       [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Wtr-general digest..."


Today's Topics:

  1. Re: how to include external script (.rb) in Watir? (Alien Ruby)
  2. Re: how to include external script (.rb) in Watir?
     ( ?eljko Filipin )
  3. Re: FireWatir not finding buttons by id (Charley Baker)
  4. Using an ie.table.each do |row| loop when the page in     the ie
     window refreshes itself (Ian Webb)
  5. Re: how to include external script (.rb) in Watir? (Alien Ruby)
  6. Re: how to include external script (.rb) in Watir?
     ( ?eljko Filipin )
  7. Re: how to include external script (.rb) in Watir? (Alien Ruby)
  8. Re: how to include external script (.rb) in Watir? (Chris McMahon)
  9. Community involvement with Watir (Charley Baker)
10. Re: how to include external script (.rb) in Watir? (Alien Ruby)
11. Re: how to include external script (.rb) in Watir? (Chris McMahon)


----------------------------------------------------------------------

Message: 1
Date: Fri, 04 May 2007 13:52:37 CDT
From: Alien Ruby <[EMAIL PROTECTED]>
Subject: Re: [Wtr-general] how to include external script (.rb) in
       Watir?
To: wtr-general@rubyforge.org
Message-ID:
       <
[EMAIL PROTECTED]>

Content-Type: text/plain; charset=ISO-8859-1

thanks for the quick respond. that was easy, huh.. I just thought too much
on that one. beginner...:(


------------------------------

Message: 2
Date: Fri, 4 May 2007 20:59:39 +0200
From: " ?eljko Filipin " <[EMAIL PROTECTED]>
Subject: Re: [Wtr-general] how to include external script (.rb) in
       Watir?
To: wtr-general@rubyforge.org
Message-ID:
       <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="utf-8"

On 5/4/07, Alien Ruby <[EMAIL PROTECTED]> wrote:
>
> thanks for the quick respond.


You are welcome. :)

that was easy, huh..


It is Ruby, (almost) everything is easy here.

I just thought too much on that one. beginner...:(
>

It happens. That is why this mailing list exists.

Zeljko
--
ZeljkoFilipin.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/wtr-general/attachments/20070504/33f31964/attachment-0001.html

------------------------------

Message: 3
Date: Fri, 4 May 2007 13:06:56 -0600
From: "Charley Baker" <[EMAIL PROTECTED]>
Subject: Re: [Wtr-general] FireWatir not finding buttons by id
To: wtr-general@rubyforge.org
Message-ID:
       <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

It's a curious bug, just saw the same thing. A bug/feature, works more
than
it should. :) Chris is right we should definitely spend more time with
Angrez, Prema and the Firewatir community. I'm getting slammed by requests
for multiple browser tests and starting to abstract layers so that it's
easier.

-c

On 5/4/07, Chris McMahon <[EMAIL PROTECTED]> wrote:
>
> > Im going to guess that this is a bug in 1.5
>
> Seems like this would be an opportunity to sync up FireWatir with
> Watir.  I think Charley has been looking into some of that recently.
> _______________________________________________
> Wtr-general mailing list
> Wtr-general@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/wtr-general/attachments/20070504/f7d09646/attachment-0001.html

------------------------------

Message: 4
Date: Fri, 4 May 2007 17:07:26 -0400
From: "Ian Webb" <[EMAIL PROTECTED]>
Subject: [Wtr-general] Using an ie.table.each do |row| loop when the
       page in the ie window refreshes itself
To: <wtr-general@rubyforge.org>
Message-ID:
       <[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="us-ascii"

Here's the code snippet that's giving me problems:

ie.table(:index,29).each do |row|
   if (row[1].text =~ /#{journals}/) != nil then #If there is a match
for that regex
     row[5].link(:index,1).click # this makes the popup window appear
     cw = Watir::IE.attach(:title,'Popup Window') # attach to the popup
window
     doRolesPopup(cw) # fill out and submit the form
   end
end

doRolesPopup fills out a form in the cw page, then clicks submit. The
submit button submits the form, then closes the cw window and reloads
the ie window. This reload of the page referenced by the ie object
appears to break the row object, since I get the following error:

c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2461:in `invoke': unknown
property or method `rows' (WIN32OLERuntimeError)
   HRESULT error code:0x80070005
     Access is denied. from
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2461:in `row'
       from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2404:in `each'
       from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2404:in `upto'
       from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2404:in `each'
       from assignroles.rb:51
       from c:/ruby/lib/ruby/1.8/csv.rb:532:in `parse'
       from c:/ruby/lib/ruby/1.8/csv.rb:560:in `each'
       from c:/ruby/lib/ruby/1.8/csv.rb:531:in `parse'
       from assignroles.rb:35

Is there any way to keep this simple .each loop, or do I need to work
around it?

Thanks,
Ian


------------------------------

Message: 5
Date: Fri, 04 May 2007 16:33:39 CDT
From: Alien Ruby <[EMAIL PROTECTED]>
Subject: Re: [Wtr-general] how to include external script (.rb) in
       Watir?
To: wtr-general@rubyforge.org
Message-ID:
       <
[EMAIL PROTECTED]>

Content-Type: text/plain; charset=ISO-8859-1

Hi...

Do you know if there is any document for me to read about function
declaration, function returning values (integer, strings), and etc.

let's say I want to multiply something by 10,

x = Multiply(3)
puts x     # this line should give me 30.

How do I use something like,

def integer Multiply(y)
{ temp = 10 * y
return temp
}

or

do a public class ?

Again, I appreciate your time.


------------------------------

Message: 6
Date: Fri, 4 May 2007 23:45:22 +0200
From: " ?eljko Filipin " <[EMAIL PROTECTED]>
Subject: Re: [Wtr-general] how to include external script (.rb) in
       Watir?
To: wtr-general@rubyforge.org
Message-ID:
       <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="utf-8"

You should read this book http://www.rubycentral.com/book/

Look for chapters about methods and classes.

Zeljko
--
ZeljkoFilipin.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/wtr-general/attachments/20070504/a14168c6/attachment-0001.html

------------------------------

Message: 7
Date: Fri, 04 May 2007 16:51:09 CDT
From: Alien Ruby <[EMAIL PROTECTED]>
Subject: Re: [Wtr-general] how to include external script (.rb) in
       Watir?
To: wtr-general@rubyforge.org
Message-ID:
       <
[EMAIL PROTECTED]>

Content-Type: text/plain; charset=ISO-8859-1

Very nice, that'll be my homework for the weekend.

thanks a bunch...!!


------------------------------

Message: 8
Date: Fri, 4 May 2007 16:01:27 -0600
From: "Chris McMahon" <[EMAIL PROTECTED]>
Subject: Re: [Wtr-general] how to include external script (.rb) in
       Watir?
To: wtr-general@rubyforge.org
Message-ID:
       <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 5/4/07, Alien Ruby <[EMAIL PROTECTED]> wrote:
> Very nice, that'll be my homework for the weekend.
>
> thanks a bunch...!!

It's on your computer, too, in C:/ruby/doc


------------------------------

Message: 9
Date: Fri, 4 May 2007 16:09:55 -0600
From: "Charley Baker" <[EMAIL PROTECTED]>
Subject: [Wtr-general] Community involvement with Watir
To: wtr-general@rubyforge.org
Message-ID:
       <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

Hi all,

I'd like to send out another annoucement asking for people to contribute
to
the Watir user guide and volunteer. I've started poking around at the user
guide today and made a few changes, notably to update view source with the
ie developer toolbar. I'll make further changes if as I get time, but am
making the call for volunteers to add information and help out, much of
which is related to Watir 1.5. Let me know if you're interested in helping
out.

I'll also suggest helping out on the lists or whereever you think you
might be useful. If you've worked with  Ruby or Watir for more than a
couple
of days, you're a couple of days ahead of the next person and can provide
some knowledge, don't be afraid to be wrong, jump in. Additionally there
is
a section on the wiki for user contributions as you write code that might
be
useful to other people. This is an open source project that depends on
community involvement.

(Starting to sound like a pbs pledge drive).

Thanks,

Charley
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/wtr-general/attachments/20070504/ecd27bce/attachment-0001.html

------------------------------

Message: 10
Date: Fri, 04 May 2007 17:25:52 CDT
From: Alien Ruby <[EMAIL PROTECTED]>
Subject: Re: [Wtr-general] how to include external script (.rb) in
       Watir?
To: wtr-general@rubyforge.org
Message-ID:
       <
[EMAIL PROTECTED]>

Content-Type: text/plain; charset=ISO-8859-1

How are you guys so helpful ?

It just makes me want to keep coding all weekend. need lots of coffee
then...

have a great weekend, guys..!!


------------------------------

Message: 11
Date: Fri, 4 May 2007 16:49:36 -0600
From: "Chris McMahon" <[EMAIL PROTECTED]>
Subject: Re: [Wtr-general] how to include external script (.rb) in
       Watir?
To: wtr-general@rubyforge.org
Message-ID:
       <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 5/4/07, Alien Ruby <[EMAIL PROTECTED]> wrote:
> How are you guys so helpful ?

That's actually a really good question.  The people who started Watir
had all participated in other Open Source projects, some successful,
some unsuccessful.   The early Watir community insisted that everyone,
particularly beginners, be treated with respect and courtesy.

Many, if not most, of the Watir community are not expert programmers.
If the project is going to continue, and continue to be successful,
two things have to happen:  beginners must continue to be treated with
respect and courtesy; and as people get more experience with Watir and
Ruby, they have to be encouraged in turn to help out where they can
contribute.

Mostly this means answering questions on the list:  if you see a
question you can answer, please do so.  It's OK if you're wrong-- as
long as you are not deliberately misleading, we will all learn
something.

In addition, if you can help with documentation or patches or
features, please contribute that work also.   Charley just asked today
for contributions to the user guide.  Maybe a reference to the copy of
Pickaxe included with the Ruby distro would be a good thing.

One very exciting project happening sort of under the radar is to make
Watir, FireWatir, SafariWatir, (and possibly Selenium RC) all have a
more consistent set of functionality and syntax.  I'm not a great
programmer, but I like to answer off-topic questions on the list, and
I've started to use the non-IE Watirs, and I contributed my first
inconsistency report yesterday.   The point being, that a few little
contributions here and there move the project along nicely, as long as
a large number of people are making the contributions.


------------------------------

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

End of Wtr-general Digest, Vol 42, Issue 12
*******************************************




--
Dhrubo
Symantec Corporation
www.servergeeks.bravehost.com
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to