lib/site_prism/dsl.rb
def merge_args(find_args, runtime_args, visibility_args = {})
      find_args = find_args.dup
      runtime_args = runtime_args.dup
      options = visibility_args.dup
      SitePrism.logger.debug("Initial args: #{find_args}, #{runtime_args}.")

      recombine_args(find_args, runtime_args, options)

      return [*find_args, *runtime_args] if options.empty?

      [*find_args, *runtime_args, options]
    end
def merge_args(find_args, runtime_args, visibility_args = {})
      find_args = find_args.dup
      runtime_args = runtime_args.dup
      options = visibility_args.dup
      SitePrism.logger.debug("Initial args: #{find_args}, #{runtime_args}.")

      recombine_args(find_args, runtime_args, options)

      return [*find_args, *runtime_args] if options.empty?

      [*find_args, *runtime_args, options]
    end
Sanitize method called before calling any SitePrism DSL method or
 meta-programmed method. This ensures that the Capybara query is correct.

 Accepts any combination of arguments sent at DSL definition or runtime
 and combines them in such a way that Capybara can operate with them.