Having recently upgraded to Watir 2.04 I changed
assert_equal( ["none","fixed"] , $browser.select_box(:name,
"model").getAllContents)
to
assert_equal( ["none","fixed"] , $browser.select_list(:name,
"model").options)
It seems this is now deprecated in Watir 3.0, and I get the following
error:
<["no
On Tue, Feb 7, 2012 at 8:10 AM, Trevor wrote:
> assert_equal( ["none","fixed"] , $browser.select_list(:name,
> "model").options)
Now you have to do something like this:
browser.select_list(:name => "model").options.collect {|option| option.text}
More information:
http://watir.com/2012/02/01/wa