I agree with @jkotests that this is a bug.

Without having looked at the code, I don't think it's correct that we simply 
append `[2]`to the given `:xpath` - that sounds way too brittle. I think we 
instead simply fetch all the elements matching the XPath given, then look up 
the correct index in Ruby. We should do the same for CSS.

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

Reply via email to