If you are using the latest versions of Page-Object and Watir (v2.2.1 and v6.7.3 respectively), the attribute_value
will no longer give a deprecation warning. Both #attribute
and #attribute_value
are supported.
For older version of Page-Object, you need to use the #attribute
method:
image_status = the_image_element.attribute('class')