Hey Jarmo or whoever else can help :),
In the latest wair-classic the Element#style() method works as follows
# return the css style as a string
def style
assert_exists
ole_object.style.cssText
end
but it still doesn't behave like the webdriver version (which takes a
property argument).
def style(property = nil)
if property
assert_exists
@element.style property
else
attribute_value("style").to_s.strip
end
end
It would be really useful if the watir-classic behaviour matched the web
driver version. Are there any plans to update this in the future or is
there a specfic reason they are different?
Thanks thanks thanks,
Connor
--
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]