On 2/14/06, Attebery, Bill <[EMAIL PROTECTED]> wrote:
Basically, I tried to install from the tarball but I'm not sure that I'm doing it quite right.
I extracted it into the C: directory -- but I wasn't sure if I was supposed to actually do it into my existing watir directory (C:\Program Files\watir), and looking at the code you sent to try, I did a search of the files extracted from the tarball and in my existing ruby and watir directories but found no reference to INPUT_TYPES (I was trying to understand what the code was doing, my best guess is that I was adding the value "select" to a constant array) -- should I have found it?  If I don't install the tarball into my existing watir directory, do I need to do anything special to make sure ruby uses the correct directory when executing a script?

There is a command line installer in there (install.rb) but i think it is broken. The Watir library (the important part) is actually installed in your ruby directory, by default C:\ruby\lib\ruby\1.8. You can hand-copy watir.rb and the files in the watir subdirectory (i.e. watir\watir\*.*) from the tarball in the mean time.

Your guess about the code is correct. (I know it sounds odd that you can add a value to a constant array, but in Ruby you can.) You should have been able to find it in watir.rb. Here is the original code in the tarball that you need:

    class SelectList < InputElement
        INPUT_TYPES = ["select-one", "select-multiple"]
        ...

Bret

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

Reply via email to