-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make :xpath and :css equal #244
Conversation
Also, some specs actually duplicate each other in |
Looks good to me. |
I think the specs are fine. It's not like we're duplication-free in the specs anyway, and having things tested in both |
@p0deje Seems good to me. Good work! I'm not sure how it works exactly in |
now both of them work on all elements and can be combined with the same selectors
Great stuff. I stumbled into this because https://github.com/cheezy/page-object/wiki/Elements claims text_field and text_area support Could you make a release with this? watir-webdriver-0.6.7 is latest gem and doesn't have it. Thanks indeed. |
I'll push 0.6.8 shortly. |
All done |
This pull requests brings the following on the table:
:css
and:index
selectors can be combined (fixes Unable to locate element using :css and :index #241):css
works on all container methods (fixes :css should work for all container methods, not just #element #124):css
and:xpath
selectors cannot be used togetherChanges for watirspec are in my fork. 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.