Sorry I forgot to edit the print statements! Probably obvious, but they
should be
puts myList[1]
etc...
Carl L. Shaulis
Convergys - Senior Analyst
Carl L
Shaulis/CIMG/CVG
To
02/01/2006 07:47 wtr-general at rubyforge.org
AM cc
Subject
Re: [Wtr-general] method(Document
link: Carl L Shaulis)
Hi Gina,
Something like this should give you a start.
# Creates the array of elements in the list
myList = ie2.select_list(:name, "<Name of select list>").getAllContents
# Prints the elements in the list
puts connections[1]
puts connections[2]
puts connections[3]
puts connections[4]
puts connections[5]
puts connections[6]
puts connections[7]
puts connections[8]
puts connections[9]
puts connections[10]
puts connections[11]
puts connections[12]
puts connections[13]
# Asserts that specific values are present
assert(connections.include?("<item 1>"))
assert(connections.include?("<item 2>"))
assert_false(connections.include?("<item X>"))
Good luck!
Carl L. Shaulis
Convergys - Senior Analyst
"Rexhina
Alickolli"
<ralickolli at kcura To
.com> <wtr-general at rubyforge.org>
Sent by: cc
wtr-general-bounc
es at rubyforge.org Subject
[Wtr-general] method
01/31/2006 04:07
PM
Please respond to
wtr-general at rubyf
orge.org
How can I verify the presence of an item in an item list
(checklist/dropdown list etc)? I am trying to find the method but no
being successful.
Thanks-- gina
_______________________________________________
Wtr-general mailing list
Wtr-general at rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general