Hi, I've been doing some testing of stylesheet attributes of various elements (trees based on div elements it turns out). When I click on a link in a tree folder the style changes from bold (unselected) to normal text weight (selected). When I developed the tests under IE 7 I could test the fontWeight style to determine whether the display style on screen had gone from bold to normal and vice-versa and things worked as expected. Under IE 6 however I am getting different results. If I select an item (previously unselected) even though the visually displayed style appears to change the attribute doesn't seem to change and my test assertion fails.
My code to access the style sheet attribute information does like this: element = browser_element.locate style = element.currentStyle assert_match(pattern, style.invoke("fontWeight").to_s) Not too sure if this is a FAQ but I'd appreciate help from anyone who's had experiences in this area. Thank you. Derek Wong. _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general