     end
   end
 
+  @spec check_for_response_errors(response) ::
+          {:ok, response}
+          | {:error, web_driver_error_reason}
+          | no_return
   # credo:disable-for-next-line Credo.Check.Refactor.CyclomaticComplexity
   defp check_for_response_errors(response) do
     case Map.get(response, "value") do

    end
  end

  defp check_status(response) do
    case Map.get(response, "status") do
      @status_obscured ->

  @type url :: String.t()
  @type params :: map | String.t()
  @type request_opts :: {:encode_json, boolean}
  @type response :: map
  @type web_driver_error_reason :: :stale_reference | :invalid_selector | :unexpected_alert

  @status_obscured 13
  # The maximum time we'll sleep is for 50ms
