[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Listbox with Watir

DaFallus

7/12/2006 8:19:00 PM

Is there a class or method for controlling listboxes in Watir? I tried
using the regular select_list methods and that works so long as you're
only selecting one item from the list. I, however, need to select
multiple items at the same time, which is why I'm using a listbox, but
I can't find anything in the Watir API reference that would allow me to
do this. Thank you in advance ;)

1 Answer

David Mullet

7/12/2006 11:43:00 PM

0

Chris wrote:
> Is there a class or method for controlling listboxes in Watir? I tried
> using the regular select_list methods and that works so long as you're
> only selecting one item from the list. I, however, need to select
> multiple items at the same time, which is why I'm using a listbox, but
> I can't find anything in the Watir API reference that would allow me to
> do this. Thank you in advance ;)

The API docs indicate that select_list object's select() and
select_value() methods will accept an array of string or regex values. I
haven't tried it myself, though.

Mully

--
Posted via http://www.ruby-....