watir/watir-webdriver — Issue #124: :css should work for all container methods, not just #element
Author: jarib
Created: 2012-03-03 20:42:13+00:00
State: open

Needs specs.

```
[12:16] jarm0 : yes
[12:16] jarib : watir-webdriver only supports it when used with browser.element
[12:16] jarm0 : hmm, why?
[12:16] jarib : not sure
[12:16] jarm0 : is it the same with :xpath?
[12:16] jarib : no, xpath works
[12:17] jarib : what happens in watir if the css/xpath finds elements that doesn't match the tag name?
[12:17] jarm0 : internally watir converts that css selector to xpath selector using nokogiri
[12:17] jarm0 : then those elements won't be found
[12:17] jarm0 : e.g. they will be ignored
[12:18] jarib : ok, makes sense
```