We already generate this method from the HTML spec.

```ruby
require 'watir-webdriver'

w = Watir::Browser.new
w.goto "data:text/html,#{URI.escape DATA.read}"
p :required => w.input.required?
w.quit

__END__
<html>
  <body>
    <input name="foo" required>
  </body>
</html>
```

Output
```console
$ ruby test.rb
true
false
$
```



---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/189#issuecomment-15586124
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to