goodwill / capybara-select2

Helper for capybara to be able to trigger select on select2 javascript (needed for js enabled test only)
MIT License
80 stars 111 forks source link

Capybara::Select2#select2 has unexpected interface for :css, :xpath #38

Open bertBruynooghe opened 9 years ago

bertBruynooghe commented 9 years ago

When using :css or :xpath, you have to know the selector for the container, which is dependent on the implementation of select2. It would be better if you could define a selector for the oriinal element on which the select2 is applied, since that on is quite well know to the developer, and independent of inplementation changes of select2.

If you wish, I can create a PR...