Assert_tag for sibling tags?


#1

Hello all,

I would like to assert_tag a row in a table, meaning that I need to
check a
‘tr’ with :child=>{:tag=>‘td’ …} AND :child=>{:tag=>‘td’,
:child=>{:tag=>‘img’}} ie; the table has a content column and an image
column, I’d like to check a specific content and image for correct
rendering.

A. is this possible?
B. am I barking up the wrong tree to test specific elements in HTML ?

Thanks,