This repository was archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
by.binding locator strategy matches sub string bindings #672
Labels
Milestone
Comments
True - there should probably be a Slightly-hacky trick which will work for now: |
I would have expected it the other way around, IMO by.binding should do exact matching, by.partialBinding would match foo to fooBar. Thanks for the hacky trick. |
happy to submit a PR if you're interested in making the change? |
@edconolly I would be OK adding an 'exactBinding' - I don't think changing (backwards-breaking) the behavior of binding would be great. |
sure makes sense. I'll whip something up this weekend. |
change is merged into master |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If I have two bindings, where one is a sub string of the other, and the longer binding occurs first on the page it is impossible to get hold of the second binding using the by.binding locator strategy.
The text was updated successfully, but these errors were encountered: