| | |
watir and selectlist
Please support our Ruby advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2008
Posts: 20
Reputation:
Solved Threads: 0
I'm experimenting with ruby and watir for parsing data from the web.
I'm having no problem getting info from standard fields, however I've come across a listbox on one of the pages I'm looking at, and I want to find an easy way of getting the number if items returned in the selectlist element, so that I iterate through them. Any idea how to get the count of items?
I'm having no problem getting info from standard fields, however I've come across a listbox on one of the pages I'm looking at, and I want to find an easy way of getting the number if items returned in the selectlist element, so that I iterate through them. Any idea how to get the count of items?
Dragonfly Services - Same Day Courier
•
•
Join Date: Jul 2009
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
I'm experimenting with ruby and watir for parsing data from the web.
I'm having no problem getting info from standard fields, however I've come across a listbox on one of the pages I'm looking at, and I want to find an easy way of getting the number if items returned in the selectlist element, so that I iterate through them. Any idea how to get the count of items?
you can get the number of items in a list box by using 'getAllContent.count' method.
eg:ie.select_list(pname,pvalue).getAllContent.count
Please let me know if you need any more information.
Thanks,
Sri.
![]() |
Other Threads in the Ruby Forum
- Previous Thread: Help Handling CSV Columns
- Next Thread: Starting up with Ruby on Rails..
| Thread Tools | Search this Thread |





