On the other hand, there is a code like 
[this](https://github.com/p0deje/watir-webdriver/blob/master/lib/watir-webdriver/locators/element_locator.rb#L297)
 which does exactly what I mentioned - appending index to generated XPath 
selector.

I'm still deeply confused with `ElementLocator` :confused: I think for now it 
makes sense to port the same behavior we do from `:xpath, :index` to `:css, 
:index`. After that, we can go over the specs and see when index is (can be) 
appended both in XPath/CSS.

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

Reply via email to