watir and selectlist

Reply

Join Date: Jul 2008
Posts: 20
Reputation: dragonflyuk is an unknown quantity at this point 
Solved Threads: 0
dragonflyuk dragonflyuk is offline Offline
Newbie Poster

watir and selectlist

 
0
  #1
Aug 30th, 2008
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?
Dragonfly Services - Same Day Courier
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 2
Reputation: sridharupputuri is an unknown quantity at this point 
Solved Threads: 0
sridharupputuri sridharupputuri is offline Offline
Newbie Poster

Re: watir and selectlist

 
0
  #2
Jul 6th, 2009
Originally Posted by dragonflyuk View Post
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?
Hi,

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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Ruby Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC