Seth Goldstein wrote:
> I have a script that works just fine under 1.4.1 but I wanted to upgrade to 
> the latest because I wanted to get FireWatir a shot and the script fails now. 
>  Here is the short version of the script:
>
> @ie.goto('http://atlas.asp.net/atlastoolkit/HoverMenu/HoverMenu.aspx')
> assert_equal('Have product idea', @ie.span(:id, 
> 'ctl00_ContentPlaceHolder1_GridView1_ctl02_Label1').text())
> assert_equal('hidden', @ie.div(:id, 
> 'ctl00_ContentPlaceHolder1_GridView1_ctl02_PopupMenu').getOLEObject().style.visibility)
>
> Works great under 1.4.1.  Under 1.5.1.1079, I get this error:
>
>   1) Error:
> test_recorded(TC_recorded):
> NoMethodError: undefined method `style' for nil:NilClass
>     C:/temp/test3.rb:19:in `test_recorded'
>
> Any ideas?
>   
In 1.5, simply use @ie.div(:id, 
'ctl00_ContentPlaceHolder1_GridView1_ctl02_PopupMenu').style.visibility

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to