Ok Bret, I got it -- the installer isn't working (as you
said), I followed your instrux and copied the files
manually.
Now I see your change and it works like a
champ!!!
Thanks for all the help and insight!!!!
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Attebery, Bill
Sent: Tuesday, February 14, 2006 9:03 AM
To: [email protected]
Subject: Re: [Wtr-general] Select List Question
I think I'm catching on -- the c:\Program Files\Watir
directory holds the docs, help, examples and test scripts and the
watir source goes to the Ruby directories (seems obvious now, took a while for
THAT light to go on ;-)
I'm still not sure I'm getting the correct tarball -- on
ruby forge I went to http://rubyforge.org/cgi-bin/viewcvs.cgi/?root=wtr and
downloaded the root tarball. I read the Installer_readme.txt and followed
those instructions to run the Installer.exe and follow the
wizard.
I found a watir folder and watir.rb (dated 8/20/2005 - more
evidence I'm not getting the correct file) under
C:\ruby\lib\ruby\site_ruby\1.8 (I
don't see any water files in c:\ruby\lib\ruby\1.8) -- in the watir.rb file
this is what I found for the SelectList class (no INPUT_TYPE -- I see where it
would go and follow how you were putting it there I think, it just looks like I
have the wrong/old? file). Can you instruct me as to where I should
be going to get the latest development tarball.
class SelectList <
Element
# returns an initialized instance of a SelectList object
# * ieController - an instance of an IEController
# * how - symbol - how we access the select box
# * what - what we use to access the select box, name, id etc
def initialize( ieController, how , what )
@ieController = ieController
@how = how
@what = what
@o = @ieController.getObject(@how, @what, ["select-one", "select-multiple"])
super( @o )
end
attr :o
# returns an initialized instance of a SelectList object
# * ieController - an instance of an IEController
# * how - symbol - how we access the select box
# * what - what we use to access the select box, name, id etc
def initialize( ieController, how , what )
@ieController = ieController
@how = how
@what = what
@o = @ieController.getObject(@how, @what, ["select-one", "select-multiple"])
super( @o )
end
attr :o
...
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord
Sent: Tuesday, February 14, 2006 8:35 AM
To: [email protected]
Subject: Re: [Wtr-general] Select List Question
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
| The content contained in this
electronic message is not intended to constitute formation of a contract binding TWTC. TWTC will be contractually bound only upon execution, by an authorized officer, of a contract including agreed terms and conditions or by express application of its tariffs. This message is intended only for the use of the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the sender of this E-Mail or by telephone. |
| The content contained in this electronic message is not intended to constitute formation of a contract binding TWTC. TWTC will be contractually bound only upon execution, by an authorized officer, of a contract including agreed terms and conditions or by express application of its tariffs. This message is intended only for the use of the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the sender of this E-Mail or by telephone. |
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
