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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With