Skip to content

Instantly share code, notes, and snippets.

@richdownie
Created March 18, 2013 14:45
Show Gist options
  • Save richdownie/5187648 to your computer and use it in GitHub Desktop.
Save richdownie/5187648 to your computer and use it in GitHub Desktop.
Given /I xpath "(.*)" "(.*)"/ do |what, how|
@browser.find_element(:xpath, ".//" + how + "[text()='" + what + "']").click
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment