lib/site_prism/dsl.rb
def recombine_args(find_args, runtime_args, options)
      options.merge!(find_args.pop) if find_args.last.is_a? Hash
      options.merge!(runtime_args.pop) if runtime_args.last.is_a? Hash
      options[:wait] = Capybara.default_max_wait_time unless options.key?(:wait)
    end
# Options re-combiner. This takes the original inputs and combines
# them such that there is only one hash passed as a final argument
# to Capybara.
#
# If the hash is empty, then the hash is omitted from the payload sent
# to Capybara, and the find / runtime arguments are sent alone.
#
# NB: If the +wait+ key is present in the options hash, even as false or 0, It will
# be set as the user-supplied value (So user error can be the cause for issues).
Options re-combiner. This takes the original inputs and combines
them such that there is only one hash passed as a final argument
to Capybara.

If the hash is empty, then the hash is omitted from the payload sent
to Capybara, and the find / runtime arguments are sent alone.

If the +wait+ key is present in the options hash, even as false or 0, It will
be set as the user-supplied value (So user error can be the cause for issues).
Options re - combiner . This takes the original inputs and combines them such that there is only one hash passed as a final argument to Capybara . If the hash is empty then the hash is omitted from the payload sent to Capybara and the find / runtime arguments are sent alone . If the + wait + key is present in the options hash even as false or 0 It will be set as the user - supplied value ( So user error can be the cause for issues ) .
def recombine_args(find_args, runtime_args, options)
      options.merge!(find_args.pop) if find_args.last.is_a? Hash
      options.merge!(runtime_args.pop) if runtime_args.last.is_a? Hash
      options[:wait] = Capybara.default_max_wait_time unless options.key?(:wait)
    end
def recombine_args ( find_args , runtime_args , options ) options . merge! ( find_args . pop ) if find_args . last . is_a? Hash options . merge! ( runtime_args . pop ) if runtime_args . last . is_a? Hash options [ :wait ] = Capybara . default_max_wait_time unless options . key? ( :wait ) end
Options re-combiner.
Options re - combiner .
find_args
runtime_args
options