RJS page.select DOM element properties

Is there an easy way to check if a certain DOM element is visible using

This code doesn’t work:

page.select(‘li.class’).each do |item|
if item.style.display == ‘none’

Do something here…



Thank you for any help.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs