Skip to content

Instantly share code, notes, and snippets.

@bear454
Created August 12, 2011 23:08
Show Gist options
  • Save bear454/1143191 to your computer and use it in GitHub Desktop.
Save bear454/1143191 to your computer and use it in GitHub Desktop.
js events in cucumber+capybara+selenium-webdriver...
When /^(?:|I )double-click the card$/ do
snippet = <<-EOS
$(".card[data-id='1']").dblclick();
EOS
page.execute_script( snippet )
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment