Reputation: 57262
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.
Upvotes: 11
Views: 13859
Reputation: 57262
browser.text_field(:index, 1).attribute_value("custom_attribute")
#=> "so cool"
Sources:
Upvotes: 26