small fix

This commit is contained in:
John Bintz 2013-04-15 14:22:25 -04:00
parent 9286cee425
commit fdd650d57a
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ def set_input(name, value)
begin
input.find("option[value='#{value}']").select_option
rescue Capybara::ElementNotFound
input.find("option[text()='#{value}']").select_option
input.find(:xpath, "./option[text()='#{value}']").select_option
end
else
input.set(value)