Skip to content

Instantly share code, notes, and snippets.

@capitolmuckrakr
Created May 28, 2015 02:00
Show Gist options
  • Save capitolmuckrakr/1b9973c1749b3c11ab90 to your computer and use it in GitHub Desktop.
Save capitolmuckrakr/1b9973c1749b3c11ab90 to your computer and use it in GitHub Desktop.
#elsif param_key == "amountReported"
if param_value.kind_of? Hash
@browser.select_list(:id=>"amountReportedOperator").option(:text=>"lte").select if param_value.to_a.flatten.first == :<=
@browser.select_list(:id=>"amountReportedOperator").option(:text=>"gte").select if param_value.to_a.flatten.first == :>=
@browser.text_field(:id => "#{param_key}").set "#{param_value.to_a.flatten.last}"
else
@browser.select_list(:id=>"amountReportedOperator").option(:text=>"eq").select
@browser.text_field(:id => "#{param_key}").set "#{param_value}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment