capybara-select2 icon indicating copy to clipboard operation
capybara-select2 copied to clipboard

Fix the issue #17

Open GCorbel opened this issue 12 years ago • 4 comments

It works for me

GCorbel avatar Aug 30 '13 00:08 GCorbel

it should probably be find(:css, drop_container).find(:css, ".select2-result-label").click since the span is used to match the searched text

chalmagean avatar Sep 02 '13 09:09 chalmagean

Both are working.

I made a benchmark and this is the result :

select2-result-label  1.150000   0.510000   1.660000 (  3.041824)
select2-match  1.050000   0.440000   1.490000 (  2.712075)

So, for speed, it's better to use "select2-match". Do you see another reason than speed?

GCorbel avatar Sep 02 '13 10:09 GCorbel

select2-match is empty, unless you do a search

chalmagean avatar Sep 02 '13 10:09 chalmagean

I did the changes.

GCorbel avatar Sep 02 '13 11:09 GCorbel