[Wtr-general] Accessing div attributes
Bret Pettichord
bret at pettichord.com
Thu Dec 29 11:30:58 EST 2005
On 12/29/05, Pat Cappelaere <pat at cappelaere.com> wrote:
>
> For this example:
> <div style="position: absolute; visibility: visible; top: 0pt; left: 0pt;"
> id="xxx">...</div>
>
> Intuitively, I would have expected to get an element and be able to access
> the methods directly such as:
> ie.div(:id, "xxx").style.visibility
> And not as: ie.div(:id, "xxx").ole_element.style.visibility
I agree. Whenever you see references to the "ole_element" you are basically
going beyond what Watir is directly supporting.
I've just committed a style method for div (and other elements).
Bret
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20051229/3ff8e955/attachment.html
More information about the Wtr-general
mailing list