I'm back in the office this morning so can give it a try on different 
browsers.
In Firefox this returns the HTML class name okay,

   puts "Class ="+browser.li(:id,tmpWork).attribute_value("class")


Difference between IE and Firefox WATIR drivers?



On Friday, February 11, 2011 7:53:24 PM UTC, Ethan wrote:
>
> it's className on the dom. I think this is exposed as #class_name in watir, 
> or you can do element.ole_object.className 
>
>  
Thanks for that I'll have a look into using #class_name, so would the line 
above be the following?

puts "Class ="+browser.li(:id,tmpWork).#class_name

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to