It is now implemented in Watir-Classic 3.3.0. Jarmo Pertman ----- IT does really matter - http://itreallymatters.net
On Friday, October 26, 2012 6:34:55 PM UTC+3, alex.ikhelis wrote: > > Thanks Jarmo, we will raise the request. > > JFYI both, this is the original discussion around #style() in watir and is > the reason we are following up on this: > > https://github.com/watir/watir-webdriver/issues/11 > > Thank you, > Aliaksandr Ikhelis > > > On Fri, Oct 26, 2012 at 4:18 PM, Jarmo <[email protected] <javascript:>>wrote: > >> 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]<javascript:> >> > 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] <javascript:> >>> http://rubyforge.org/mailman/listinfo/wtr-development >>> >> >> >> _______________________________________________ >> Wtr-development mailing list >> [email protected] <javascript:> >> http://rubyforge.org/mailman/listinfo/wtr-development >> > > -- 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]
