List Info

Thread: How to access childnodes of a particular node ?




How to access childnodes of a particular node ?
country flaguser name
United States
2007-02-22 04:31:53
So far I didn't find any solution to access child nodes of a
particular element, if anybody knows any method or hack
please post it here.

I have to iterate over child div's of a container div.
------------------------------------------------------------
---------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa
?threadID=6648&messageID=19047#19047
_______________________________________________
Wtr-general mailing list
Wtr-generalrubyforge.org
htt
p://rubyforge.org/mailman/listinfo/wtr-general

Re: How to access childnodes of a particular node ?
user name
2007-02-22 04:43:47
Is this what you need?

<;div>
&lt;div>1&lt;/div>
<div>;2</div&gt;
</div>

irb&gt; ie.div(:index, 1).divs.each {|div| puts div.text}
1
2
=> 0
--
Zeljko Filipin
zeljkofilipin.com
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )