This pull requests brings the following on the table:

1. `:css` and `:index` selectors can be combined (fixes #241)
2. `:css` works on all container methods (fixes #124)
3. `:css` and `:xpath` selectors cannot be used together
4. Removes dead code in xpath builder where index is appended. I still think 
this should be restored both for XPath and CSS builders, but it's a 
separate thing to discuss.

Changes for watirspec are in my 
[fork](https://github.com/p0deje/watirspec/tree/css-emancipation). Please take 
a look too.

@jarib @jarmo There might be some edge cases or anything that simply didn't 
come to my mind, so please review the changes. I've also tested this 
manually a bit. I'd appreciate any code improvements too.
You can merge this Pull Request by running:

  git pull https://github.com/p0deje/watir-webdriver css-emancipation

Or you can view, comment on it, or merge it online at:

  https://github.com/watir/watir-webdriver/pull/244

-- Commit Summary --

  * build_xpath never receives index, remove dead code
  * make :xpath and :css equal
  * bump watirspec

-- File Changes --

    M lib/watir-webdriver/locators/element_locator.rb (43)
    M spec/element_locator_spec.rb (32)
    M spec/watirspec (2)

-- Patch Links --

https://github.com/watir/watir-webdriver/pull/244.patch
https://github.com/watir/watir-webdriver/pull/244.diff

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

Reply via email to