Skip to content

Instantly share code, notes, and snippets.

@brobertsaz
Created December 19, 2012 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brobertsaz/4339329 to your computer and use it in GitHub Desktop.
Save brobertsaz/4339329 to your computer and use it in GitHub Desktop.
A small script to use for testing rails-select2
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