I have HTML that looks like this:
<input custom_attribute="so cool" type="text" />
I would like to enter text in it using Watir.
Filipin's answer did not work for my job with watir-webdriver.
I did, however, find a way to do the job with css selectors.
browser.element(:css, "input[custom_attribute='so cool']").send_keys("the coolest")
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