Skip to content

Instantly share code, notes, and snippets.

@ignacy
Created June 30, 2010 11:03
Show Gist options
  • Save ignacy/458522 to your computer and use it in GitHub Desktop.
Save ignacy/458522 to your computer and use it in GitHub Desktop.
# Selenium, capybara - a way to click on a div
Then /^I click on "([^\"]*)" inside "([^\"]*)"$/ do |class_name, within|
locate(:css, "#{within} > #{class_name}").click
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment