Topic: Collection Proxies - how to get property from element?
I have a page, where I have several divs with the same class rightd and different ids. I need to update them, but ids are generated dynamically.
So I do:
page.select('div.rightd').each do |item|
# here I need id of item to be in some string variable
this works fine, but I need to have id property of each selected div in string variable, to perform some action after highlighting. How to do it?
I have also tried:
page.select('div.rightd').pluck ('result', 'id')
thanks in advance