Skip to content

Instantly share code, notes, and snippets.

@tarolandia
Created October 16, 2013 20:42
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 tarolandia/7014493 to your computer and use it in GitHub Desktop.
Save tarolandia/7014493 to your computer and use it in GitHub Desktop.
When /^I edit biometric value with "(.*)"$/ do |value|
@value = value
find(:css, "div[data-key='#{@key}']").hover
within("div[data-key='#{@key}']") do
find(:css, ".icon-edit").trigger("click")
end
within("div.resource-type-#{@key}") do
find(:css, "div.selectbox").click
end
within("ul.selectbox") do
find(:css, ".text", text: Regexp.new("^#{Regexp.quote(value)}$")).trigger('click')
end
click_on "Save"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment