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"
<[EMAIL PROTECTED] To
.com> <[email protected]>
Sent by: cc
wtr-general-bounc
[EMAIL PROTECTED] Subject
[Wtr-general] method
01/31/2006 04:07
PM
Please respond to
[EMAIL PROTECTED]
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
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
- Re: [Wtr-general] method carl . l . shaulis
- Re: [Wtr-general] method carl . l . shaulis
