facebook - Watir returning wrong elements? -
i'm running code on facebook app pages, part of research project. want 2 values page, , 3 values in total fit condition
b.div(class: "_50f6 _50f7 _5tfx")
however, when try
puts b.div(class: "_50f6 _50f7 _5tfx").text
it prints first (correct) value.
when do
b.divs(class: "_50f6 _50f7 _5tfx").each |div| puts div.text
i no response. if try
b.divs(class: "_50f6 _50f7 _5tfx")[0].text
i lot of unrelated information doesn't fit class condition either.
the page i'm testing https://www.facebook.com/clashofclans. use watir click on likes button as:
b.link(class: "uilinksubtle").click
and use above information want, values 693599, 12794001 , 211020 (people talking this, total likes, new likes). what's code doing wrong?
Comments
Post a Comment