I don't see any reason why it should not be doable in watir-classic too - didn't know that feature exists in watir-webdriver. Please open up a feature request under https://github.com/watir/watir-classic/issues and i'll try to introduce that in the next version.
J. On Fri, Oct 26, 2012 at 1:16 PM, Connor Culleton <[email protected]>wrote: > Hey Jarmo, > > 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 for everything, > Connor > > _______________________________________________ > Wtr-development mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-development >
_______________________________________________ Wtr-development mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-development
