Good question.

I am talking about (and arguing agains) using the text method on the IE
object itself (IE#text), not using on specific elements on a page.

Bret

On Sun, May 2, 2010 at 9:26 PM, Alan Baird <[email protected]> wrote:

> > Also, pretty reluctant to add any methods that will be hard to implement
> in
> > different implementations. As it is already, the "text" method is not
> > compatible between versions and we should really be encouraging people
> not
> > to use it. I don't think it really is a good practice any way.
>
> Bret -
>
> Can you clarify this a bit?  I'm thinking you are saying it's not good
> practice, say, to get the text of a span by doing 'browser.span(:id,
> 'someid').text'.  However, I'm not sure I can immediately think of a
> better way of doing this other than parsing the html.  I'm pretty sure
> that's not what you mean.
>
> What is the better way of doing this?
>
> Alan
> _______________________________________________
> Wtr-development mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-development
>



-- 
Bret Pettichord
Lead Developer, Watir, www.watir.com

Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to