We're not going to add support for attributes that are not in the HTML spec to
watir-webdriver directly. You can:
Use the `:css` or `:xpath` locators to find elements by arbitrary attribute:
```ruby
b.element(css: '[ng-model="foo"]')
b.element(xpath: './/*[@ng-model="foo"]')
```
Use `Element#attribute` to fetch attributes
```ruby
element.attribute('ng-model')
```
You can also add the Angular attributes to the global list of attributes:
```ruby
Watir::HTMLElement.attributes << :ng_model
b.element(:ng_model => "foo")
```
---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/260#issuecomment-44373951_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development