I have HTML that looks like this:
<input custom_attribute="so cool" type="text" />
I would like to get value of custom_attribute
using Watir.
I have HTML that looks like this:
<input custom_attribute="so cool" type="text" />
I would like to get value of custom_attribute
using Watir.
browser.text_field(:index, 1).attribute_value("custom_attribute")
#=> "so cool"
Sources: