Is there an easy way to check if a certain DOM element is visible using
Select?
This code doesn’t work:
page.select(‘li.class’).each do |item|
if item.style.display == ‘none’
Do something here…
end
end
Thank you for any help.
Is there an easy way to check if a certain DOM element is visible using
Select?
This code doesn’t work:
page.select(‘li.class’).each do |item|
if item.style.display == ‘none’
end
end
Thank you for any help.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs