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

Find exact #58

Open Uysim opened 4 years ago

Uysim commented 4 years ago

I have two select2 Unit and Unit Type when I do

select2 "ABC", from: "Unit"

Then I got error

Ambiguous match, found 2 elements matching visible css "label:not(.select2-offscreen)" with text "Unit"

It need an option to find exact text