Skip to content

Instantly share code, notes, and snippets.

@passalini
Last active December 23, 2015 09:29
Show Gist options
  • Save passalini/6614466 to your computer and use it in GitHub Desktop.
Save passalini/6614466 to your computer and use it in GitHub Desktop.
test chosen (ajax) with capybara
within('.chzn-search') do
find('input').set element_name
end
sleep(1)
within(".chzn-results") do
find('li.active-result').click
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment