Hi,
Im using Ruby 1.8.6 with Watir 1.6.2
i know its is very old but we have maintained this structure becasue of
some reasons.
Presently i m getting NOMETHODERROR when i use .options with select_list.
Here is my code :
elems = Array.new
values = Array.new
elems = $ie.select_list(:id,"setTagList").options
puts elems
0.upto(elems.length - 1) do |i|
values.push elems[i].text
end
It shows errros as :
NoMethodError: undefined method `options' for #<Watir::SelectList:0xfcc2d4c>
I also tried this :
searchList = $ie.select_list(:id,"setTagList")
selectContent = searchList.options.collect { |option| option.value }
Still same error.
But .options is supported for select_list, then why im getting this error?
Can anyone help?
Thanks
Bhavesh
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.