Created
December 19, 2012 18:51
-
-
Save brobertsaz/4339329 to your computer and use it in GitHub Desktop.
A small script to use for testing rails-select2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
click_link "Select" | |
page.execute_script("i = $('.select2-container input').first(); | |
i.val('"name of first optionin selection"').trigger('keyup');"); | |
find('.select2-results li:first-child').click | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment