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 <jarm...@gmail.com> 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 
> <connor.qa....@gmail.com>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
>> wtr-developm...@rubyforge.org
>> http://rubyforge.org/mailman/listinfo/wtr-development
>>
>
>
> _______________________________________________
> Wtr-development mailing list
> wtr-developm...@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-development
>

-- 
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