How can I get value of element custom attribute with Watir
https://stackoverflow.com/questions/1443455
Question
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.
Solution
browser.text_field(:index, 1).attribute_value("custom_attribute")
#=> "so cool"
Sources:
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow