Problem accessing elements by class or ID

Viewed 36

I have to access a div collection and extrapolate some data cycling through it.

names = b.divs(class:"item ng-final")

names.each do |name|
    data = name.text
    puts data
end

It grabs correctly the collection ("puts names" output is indeed a div collection), but it doesn't start the cycle ("puts names.length" is 0). The only thing I can think of is that the website is built using angular and every element has also an ng-class.

Does this create conflict in Watir?

0 Answers
Related