[wtr-general] Re: Checking class equality in browser

2015-03-13 Thread Super Kevy
myArray = b.divs(:class=_again) myArray.each do | theDiv | puts div.text.to_s end On Friday, March 13, 2015 at 8:07:50 AM UTC-5, Dan wrote: Posting the error you get would help. You don't need the for i or the each. Just the below should do it: b.divs(:class = _again).each { |div| puts

[wtr-general] Re: Checking class equality in browser

2015-03-13 Thread Dan
Posting the error you get would help. You don't need the for i or the each. Just the below should do it: b.divs(:class = _again).each { |div| puts div.text } On Thursday, March 12, 2015 at 5:30:27 AM UTC-4, Vish wrote: Hey guys, I'm trying to get all divs in a page with class = _again and