Created
May 28, 2015 02:00
-
-
Save capitolmuckrakr/1b9973c1749b3c11ab90 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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